Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Chocolatey (#53)
Browse files Browse the repository at this point in the history
* Added Chocolatey NuSpec.
* Implemented Chocolatey AppVeyor deploy on demand.
* Removed Architecture Dependent Builds because due to the Prefer32Bit option, only 32 bit dlls of BASS are required.
  • Loading branch information
MathewSachin authored May 11, 2017
1 parent bddada1 commit 66ae7d5
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ temp/
Output/
.vs/
*.suo
*.user
*.user
*.nupkg
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes using [Screna](https:
- Run `init.bat` after cloning the repository (clones submodules).

## Optional Native Libraries
Download and place in build output directory (x86 or x64 as required).
Download and place in build output directory.
These may need licensing for commercial use.
x64 libraries are available in [Releases](https://github.com/MathewSachin/Captura/releases).

- [BASS Audio library](http://www.un4seen.com/download.php?bass24) for Audio Recording - *bass.dll*.
- [BASSmix](http://www.un4seen.com/download.php?bassmix24) for Audio Mixing - *bassmix.dll*.
- [FFMpeg](https://ffmpeg.zeranoe.com/builds/) for Audio/Video Encoding - *ffmpeg.exe* (Static build recommended).
- [BASS Audio library](http://www.un4seen.com/download.php?bass24) for Audio Recording - *bass.dll* (x86).
- [BASSmix](http://www.un4seen.com/download.php?bassmix24) for Audio Mixing - *bassmix.dll* (x86).
- [FFMpeg](https://ffmpeg.zeranoe.com/builds/) for Audio/Video Encoding - *ffmpeg.exe* (Static build recommended) (x86 or x64 as per platform).
30 changes: 15 additions & 15 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ environment:
# Will be updated Before Build
AppVersion: 1.0.0

# System Architecture
matrix:
- arch: x86
- arch: x64

install:
# Update Submodules
- init.bat
Expand Down Expand Up @@ -71,21 +66,26 @@ after_build:
- ps: Expand-Archive "temp/bassmix.zip" "temp/bassmix"

# Copy BASS and BassMix
- ps: Copy-Item 'temp/bass/bass.dll', 'temp/bassmix/bassmix.dll' 'Output/'

# Pack Deploy zip
- ps: Compress-Archive 'Output\*' "Output\Captura-$env:configuration.zip"

# Chocolatey
- ps: >-
if ($env:arch -eq 'x86')
{
Copy-Item 'temp/bass/bass.dll', 'temp/bassmix/bassmix.dll' 'Output/'
}
elseif ($env:arch -eq 'x64')
if ($env:configuration -eq 'Release' -and $env:appveyor_repo_tag -eq 'true')
{
Copy-Item 'temp/bass/x64/bass.dll', 'temp/bassmix/x64/bassmix.dll' 'Output/'
}
$installScript = "choco/tools/chocolateyinstall.ps1";
# Pack Deploy zip
- ps: Compress-Archive 'Output\*' "Output\Captura-$env:configuration-$env:arch.zip"
# Modify install script links
Set-Content $installScript ('$tag = "' + $env:APPVEYOR_REPO_TAG_NAME + '"; ' + (Get-Content $installScript));
choco pack choco/captura.nuspec --version $env:AppVersion;
Push-AppVeyorArtifact "captura.$env:AppVersion.nupkg" -DeploymentName Chocolatey;
}
artifacts:
- path: Output/Captura-$(configuration)-$(arch).zip
- path: Output/Captura-$(configuration).zip
name: Captura.zip

deploy:
Expand Down
28 changes: 28 additions & 0 deletions choco/captura.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>captura</id>
<version>3.0.0</version>
<title>Captura</title>
<authors>Mathew Sachin</authors>
<projectUrl>https://github.com/MathewSachin/Captura</projectUrl>
<tags>captura screen capture recording loopback screenshot screencast</tags>
<summary>Capture Screen/Audio/Cursor/Clicks/Keystrokes</summary>
<description>
Captura is an application to capture Screen/Audio/Cursor/Clicks/Keystrokes.

## Features
- Take ScreenShots
- Capture ScreenCasts (Avi/Gif/Mp4)
- Capture with/without Mouse Cursor
- Capture Specific Regions or Windows
- Capture Mouse Clicks or Keystrokes
- Record Audio from Microphone **AND/OR** Speaker Output (Wasapi Loopback)

Download ffmpeg.exe and add to path for even more features.
</description>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
1 change: 1 addition & 0 deletions choco/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Install-ChocolateyZipPackage 'Captura' -Url "https://github.com/MathewSachin/Captura/releases/download/$tag/Captura-Release.zip" -UnzipLocation "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
2 changes: 1 addition & 1 deletion src/Captura/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
[assembly: AssemblyProduct("Captura")]
[assembly: AssemblyCopyright("(c) 2016 Mathew Sachin")]
[assembly: AssemblyTrademark("Captura")]
[assembly: AssemblyVersion("3.0.0")]
[assembly: AssemblyVersion("3.1.0")]

0 comments on commit 66ae7d5

Please sign in to comment.