| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- image: Visual Studio 2022
- version: 3.24.{build}.0
- clone_folder: c:\projects\ditto
- branches:
- only:
- - master
- - appveyor
- skip_branch_with_pr: true
-
- install:
- - set INNO_SETUP_PATH=C:\Program Files (x86)\Inno Setup 6
- - set APP_CERT_KIT_PATH=C:\Program Files (x86)\Windows Kits\10\App Certification Kit
- - set Path=%INNO_SETUP_PATH%;%APP_CERT_KIT_PATH%;%PATH%
-
- environment:
- VERSION_FILENAME: 3_24_%APPVEYOR_BUILD_NUMBER%_0
- VERSION_DOT_FILENAME: 3.24.%APPVEYOR_BUILD_NUMBER%.0
- CHOCO_API_KEY:
- secure: ZeAW38gXYNcJmxTOEGhA1RC5XzmJVvxVM8bsCCARnbYHEDmtQiRZxV4G+/KY4wW9
- GITHUB_API_KEY:
- secure: xDmRXGs7zIdLE5NoI6UZQMLUpbK55imdrQKy594A1WHS8ig0pk0DblQr+70/2rrh
- # APPVEYOR_RDP_PASSWORD: Letmein1!
- #init:
- # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- build_script:
- - echo Building version:%appveyor_build_version%
- - cmd: nuget restore
- - appveyor AddMessage -Category Information "Building 32bit"
- - cmd: msbuild CP_Main_10.sln /p:Configuration=Release /p:Platform=Win32
- - appveyor AddMessage -Category Information "Building 64bit"
- - cmd: msbuild CP_Main_10.sln /p:Configuration=Release /p:Platform=x64
- after_build:
- - appveyor AddMessage -Category Information "Setting version"
- - DittoSetup\rcedit-x86 Release\Ditto.exe --set-file-version %APPVEYOR_BUILD_VERSION% --set-product-version %APPVEYOR_BUILD_VERSION%
- - DittoSetup\rcedit-x64 Release64\Ditto.exe --set-file-version %APPVEYOR_BUILD_VERSION% --set-product-version %APPVEYOR_BUILD_VERSION%
-
- - appveyor AddMessage -Category Information "Building Installers"
- - iscc /Q /F"DittoSetup_%VERSION_FILENAME%" "DittoSetup\DittoSetup_10.iss"
- - iscc /Q /F"DittoSetup_64bit_%VERSION_FILENAME%" "DittoSetup\DittoSetup_10.iss" "/dbit64=1"
-
- - appveyor AddMessage -Category Information "Building Portables"
- - DittoSetup\BuildPortableZIP.bat "DittoPortable_%VERSION_FILENAME%" bit32
- - DittoSetup\BuildPortableZIP.bat "DittoPortable_64bit_%VERSION_FILENAME%" bit64
-
- - appveyor AddMessage -Category Information "Zipping Debug files"
- - 7z a DittoSetup\output\DittoDebug_%VERSION_FILENAME%.7z *.pdb -r
- - 7z a DittoSetup\output\DittoDebug_%VERSION_FILENAME%.7z *.map -r
-
- - appveyor AddMessage -Category Information "Building ditto choco"
- - ps: (Get-Content 'DittoSetup\Chocolatey\ditto.nuspec' -Raw).Replace("%version%", "$($env:APPVEYOR_BUILD_VERSION)") | Out-File 'DittoSetup\Chocolatey\ditto.nuspec'
- - copy DittoSetup\output\DittoSetup_%VERSION_FILENAME%.exe DittoSetup\Chocolatey\tools\DittoSetup_%VERSION_FILENAME%.exe
- - copy DittoSetup\output\DittoSetup_64bit_%VERSION_FILENAME%.exe DittoSetup\Chocolatey\tools\DittoSetup_64bit_%VERSION_FILENAME%.exe
- - cd DittoSetup\Chocolatey
- - choco pack
- - choco push --key %CHOCO_API_KEY% --source https://push.chocolatey.org/
- - cd ..
- - cd ..
-
- - appveyor AddMessage -Category Information "Building ditto choco.install"
- - ps: (Get-Content 'DittoSetup\Chocolatey.install\ditto.nuspec' -Raw).Replace("%version%", "$($env:APPVEYOR_BUILD_VERSION)") | Out-File 'DittoSetup\Chocolatey.install\ditto.nuspec'
- - copy DittoSetup\output\DittoSetup_%VERSION_FILENAME%.exe DittoSetup\Chocolatey.install\tools\DittoSetup_%VERSION_FILENAME%.exe
- - copy DittoSetup\output\DittoSetup_64bit_%VERSION_FILENAME%.exe DittoSetup\Chocolatey.install\tools\DittoSetup_64bit_%VERSION_FILENAME%.exe
- - cd DittoSetup\Chocolatey.install
- - choco pack
- - choco push --key %CHOCO_API_KEY% --source https://push.chocolatey.org/
- - cd ..
- - cd ..
-
- - appveyor AddMessage -Category Information "Building ditto choco.portable"
- - ps: (Get-Content 'DittoSetup\Chocolatey.portable\ditto.nuspec' -Raw).Replace("%version%", "$($env:APPVEYOR_BUILD_VERSION)") | Out-File 'DittoSetup\Chocolatey.portable\ditto.nuspec'
- - copy DittoSetup\output\DittoPortable_%VERSION_FILENAME%.zip DittoSetup\Chocolatey.portable\tools\DittoPortable_%VERSION_FILENAME%.zip
- - copy DittoSetup\output\DittoPortable_64bit_%VERSION_FILENAME%.zip DittoSetup\Chocolatey.portable\tools\DittoPortable_64bit_%VERSION_FILENAME%.zip
- - cd DittoSetup\Chocolatey.portable
- - choco pack
- - choco push --key %CHOCO_API_KEY% --source https://push.chocolatey.org/
- - cd ..
- - cd ..
- - appveyor AddMessage -Category Information "Building appx"
- - 7z x DittoSetup\output\DittoPortable_%VERSION_FILENAME%.zip -oDittoSetup\appx -r
- - ps: (Get-Content 'DittoSetup\appx\appxmanifest.xml' -Raw).Replace("%version%", "$($env:APPVEYOR_BUILD_VERSION)") | Out-File 'DittoSetup\appx\appxmanifest.xml'
- - cd DittoSetup\appx
- - makeappx.exe pack /f files.ini /p Ditto_%VERSION_FILENAME%.appx
- - signtool.exe sign -f my.pfx -fd SHA256 -v Ditto_%VERSION_FILENAME%.appx
- - cd ..
- - cd ..
- - copy DittoSetup\appx\Ditto_%VERSION_FILENAME%.appx DittoSetup\Output\Ditto_%VERSION_FILENAME%.appx
-
- - appveyor AddMessage -Category Information "Publishing to GitHub"
- - npm install ./DittoSetup/GitHubRelease && SET "token=%GITHUB_API_KEY%" && SET "uploadPath=DittoSetup\output\" && SET "tag=%APPVEYOR_BUILD_VERSION%" && SET "previous_tag=3.24.246.0" && node ./DittoSetup/GitHubRelease/index.js
- artifacts:
- - path: DittoSetup\output\DittoSetup_%VERSION_FILENAME%.exe
- name: Ditto Setup
- - path: DittoSetup\output\DittoSetup_64bit_%VERSION_FILENAME%.exe
- name: Ditto Setup 64bit
- - path: DittoSetup\output\DittoPortable_%VERSION_FILENAME%.zip
- name: Ditto Portable
- - path: DittoSetup\output\DittoPortable_64bit_%VERSION_FILENAME%.zip
- name: Ditto Portable 64bit
- - path: DittoSetup\output\DittoDebug_%VERSION_FILENAME%.7z
- name: Ditto Debug
- - path: DittoSetup\output\Ditto_%VERSION_FILENAME%.appx
- name: Ditto appx
- - path: DittoSetup\Chocolatey\ditto.%VERSION_DOT_FILENAME%-beta.nupkg
- name: Ditto Choco
- #deploy:
- #- provider: Webhook
- # url: https://app.signpath.io/API/v1/11add37b-5875-49ff-a233-919a1833b6d8/Integrations/AppVeyor?ProjectSlug=Ditto&SigningPolicySlug=release-signing&ArtifactConfigurationSlug=initial
- # authorization:
- # secure: /YrIyb25bbTkbgBsg/1ttvD6y9GC4BqSNqSewTSIVMmYYrmyWw1VaJ7a80ixX6uXVYQ38UAn/qniQnWpDDNYbw==
|