2017-10-29 01:13:04 +00:00
|
|
|
version: 0.8.{build}
|
|
|
|
pull_requests:
|
|
|
|
do_not_increment_build_number: true
|
2017-05-14 16:53:49 +00:00
|
|
|
skip_tags: true
|
2017-10-29 01:13:04 +00:00
|
|
|
image: Visual Studio 2017
|
2017-05-14 16:53:49 +00:00
|
|
|
configuration: Release
|
2017-10-29 01:13:04 +00:00
|
|
|
shallow_clone: true
|
2017-05-14 16:53:49 +00:00
|
|
|
assembly_info:
|
|
|
|
patch: true
|
|
|
|
file: '**\AssemblyInfo.*'
|
|
|
|
assembly_version: '{version}'
|
|
|
|
assembly_file_version: '{version}'
|
|
|
|
assembly_informational_version: '{version}'
|
2017-11-05 10:53:43 +00:00
|
|
|
dotnet_csproj:
|
|
|
|
patch: true
|
|
|
|
file: '**\*.csproj'
|
|
|
|
version: '{version}'
|
|
|
|
package_version: '{version}'
|
|
|
|
assembly_version: '{version}'
|
|
|
|
file_version: '{version}'
|
|
|
|
informational_version: '{version}'
|
2017-05-14 16:53:49 +00:00
|
|
|
install:
|
|
|
|
- cmd: choco install InnoSetup
|
|
|
|
before_build:
|
|
|
|
- cmd: nuget restore src\Jackett.sln
|
|
|
|
build:
|
|
|
|
verbosity: minimal
|
|
|
|
after_build:
|
|
|
|
- cmd: >-
|
2017-10-29 01:13:04 +00:00
|
|
|
xcopy src\Jackett.Console\bin\Release base\ /e /y
|
2017-05-14 16:53:49 +00:00
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
copy /Y src\Jackett.Service\bin\Release\JackettService.exe* %APPVEYOR_BUILD_FOLDER%\base\
|
2017-05-14 16:53:49 +00:00
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe* %APPVEYOR_BUILD_FOLDER%\base\
|
2017-05-14 16:53:49 +00:00
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
copy /Y src\Jackett.Updater\bin\Release\JackettUpdater.exe* %APPVEYOR_BUILD_FOLDER%\base\
|
2017-05-14 16:53:49 +00:00
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
copy /Y Upstart.config base\Upstart.config
|
2017-05-14 16:53:49 +00:00
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
copy /Y LICENSE base\LICENSE
|
2017-05-14 16:53:49 +00:00
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
copy /Y README.md base\README.md
|
2017-05-14 16:53:49 +00:00
|
|
|
|
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
xcopy base build.windows\ /e /y
|
2017-05-14 16:53:49 +00:00
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
xcopy base BaseBuild\Jackett\ /e /y
|
2017-05-14 16:53:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installer.iss
|
|
|
|
|
|
|
|
RENAME Output\setup.exe Jackett.Installer.Windows.exe
|
|
|
|
|
|
|
|
MOVE Output\Jackett.Installer.Windows.exe %APPVEYOR_BUILD_FOLDER%
|
|
|
|
|
|
|
|
|
2017-10-29 01:13:04 +00:00
|
|
|
cd BaseBuild
|
2017-05-14 16:53:49 +00:00
|
|
|
|
|
|
|
7z a -tzip -r "%APPVEYOR_BUILD_FOLDER%\Jackett.Binaries.Windows.zip" "Jackett\"
|
|
|
|
|
|
|
|
7z a -ttar "%APPVEYOR_BUILD_FOLDER%\Jackett.Binaries.Mono.tar" "Jackett\"
|
|
|
|
|
|
|
|
cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
|
|
|
|
7z a -tgzip "Jackett.Binaries.Mono.tar.gz" "Jackett.Binaries.Mono.tar"
|
|
|
|
|
|
|
|
|
|
|
|
appveyor PushArtifact Jackett.Installer.Windows.exe
|
|
|
|
|
|
|
|
appveyor PushArtifact Jackett.Binaries.Windows.zip
|
|
|
|
|
|
|
|
appveyor PushArtifact Jackett.Binaries.Mono.tar.gz
|
|
|
|
deploy:
|
|
|
|
- provider: GitHub
|
|
|
|
tag: v$(appveyor_build_version)
|
|
|
|
auth_token:
|
|
|
|
secure: hOg+16YTIbq4kO9u4D1YVOTbWDqgCX6mAQYMbnmBBSw2CiUsZh7OKbupoUb3FtWa
|
|
|
|
draft: true
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
notifications:
|
2017-10-29 01:13:04 +00:00
|
|
|
- provider: Webhook
|
|
|
|
url: https://skyhook.glitch.me/api/webhooks/346588605843767297/_VWi5abKliaWsBmQO7AX69tD28FhqSLjKyLBwkSwwT13uyWJQHx5TSWK_iAs-0RzmyvZ/appveyor
|
|
|
|
method: POST
|
2017-05-14 16:53:49 +00:00
|
|
|
on_build_success: true
|
|
|
|
on_build_failure: true
|
2017-05-08 12:26:56 +00:00
|
|
|
on_build_status_changed: true
|