:: Print ccache statistics ccache.exe -s CD C:\MuseScore REM the code is used to generate MS version for both nightly and stable releases SET input=C:\MuseScore\CMakeLists.txt FOR /f tokens^=2^ delims^=^" %%A IN ('findstr /C:"SET(MUSESCORE_VERSION_MAJOR" %input%') DO set VERSION_MAJOR=%%A FOR /f tokens^=2^ delims^=^" %%A IN ('findstr /C:"SET(MUSESCORE_VERSION_MINOR" %input%') DO set VERSION_MINOR=%%A FOR /f tokens^=2^ delims^=^" %%A IN ('findstr /C:"SET(MUSESCORE_VERSION_PATCH" %input%') DO set VERSION_PATCH=%%A SET MUSESCORE_VERSION=%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_PATCH%.%APPVEYOR_BUILD_NUMBER% :: Test MuseScore stability IF "%NIGHTLY_BUILD%" == "" ( goto :STABLE_LABEL ) ELSE ( goto :UNSTABLE_LABEL ) :STABLE_LABEL echo "Stable: Build MSI package" :: sign dlls and exe files CD C:\MuseScore SET dSource=msvc.install_x64 for /f "delims=" %%f in ('dir /a-d /b /s "%dSource%\*.dll" "%dSource%\*.exe"') do ( echo "Signing %%f" "C:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe" sign /f "C:\MuseScore\build\appveyor\resources\musescore.p12" /t http://timestamp.verisign.com/scripts/timstamp.dll /p "%CERTIFICATE_PASSWORD%" "%%f" ) CD C:\MuseScore :: generate unique GUID "C:\cygwin64\bin\uuidgen.exe" > uuid.txt SET /p PACKAGE_UUID= echo ^%MUSESCORE_VERSION%^ echo ^%MSREVISION%^ echo ^nightly^ echo ^%SHORT_DATE%^ echo ^MuseScore %MUSESCORE_VERSION% %MSREVISION%^ echo ^https://ftp.osuosl.org/pub/musescore-nightlies/windows/%ARTIFACT_NAME%^ echo ^https://ftp.osuosl.org/pub/musescore-nightlies/windows/^ echo ^ )>"C:\MuseScore\update_win_nightly.xml" @echo on type C:\MuseScore\update_win_nightly.xml :UPLOAD SET SSH_IDENTITY=C:\MuseScore\build\appveyor\resources\osuosl_nighlies_rsa_nopp SET PATH=%OLD_PATH% IF DEFINED ENCRYPT_SECRET_SSH ( scp -oStrictHostKeyChecking=no -C -i %SSH_IDENTITY% %ARTIFACT_NAME% musescore-nightlies@ftp-osl.osuosl.org:~/ftp/windows/ ssh -oStrictHostKeyChecking=no -i %SSH_IDENTITY% musescore-nightlies@ftp-osl.osuosl.org "cd ~/ftp/windows; ls MuseScoreNightly* -t | tail -n +41 | xargs rm -f" rem create and upload index.html and RSS python build/appveyor/updateHTML.py %SSH_IDENTITY% scp -oStrictHostKeyChecking=no -C -i %SSH_IDENTITY% build/appveyor/web/index.html musescore-nightlies@ftp-osl.osuosl.org:ftp/windows scp -oStrictHostKeyChecking=no -C -i %SSH_IDENTITY% build/appveyor/web/nightly.xml musescore-nightlies@ftp-osl.osuosl.org:ftp/windows rem trigger distribution ssh -oStrictHostKeyChecking=no -i %SSH_IDENTITY% musescore-nightlies@ftp-osl.osuosl.org "~/trigger-musescore-nightlies" rem notify IRC channel pip install irc python build/appveyor/irccat.py "%APPVEYOR_REPO_BRANCH%-%MSREVISION% (Win) compiled successfully https://ftp.osuosl.org/pub/musescore-nightlies/windows/%ARTIFACT_NAME%" ) :: back to root CD C:\MuseScore