diff --git a/README.md b/README.md index 68bec97e..08f18bf5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # sfizz [![Travis Build Status]](https://travis-ci.com/sfztools/sfizz) +[![AppVeyor Build Status]](https://ci.appveyor.com/project/sfztools/sfizz) SFZ library and LV2 plugin, please check [our website] for more details. @@ -42,4 +43,5 @@ The sfizz library also uses in some subprojects: [libsndfile]: https://github.com/erikd/libsndfile/ [LV2]: https://lv2plug.in/ [our website]: https://sfz.tools/sfizz -[Travis Build Status]: https://img.shields.io/travis/com/sfztools/sfizz.svg?label=Linux&style=popout&logo=travis +[AppVeyor Build Status]: https://img.shields.io/appveyor/ci/sfztools/sfizz.svg?label=Windows&style=popout&logo=appveyor +[Travis Build Status]: https://img.shields.io/travis/com/sfztools/sfizz.svg?label=Linux&style=popout&logo=travis diff --git a/appveyor.yml b/appveyor.yml index 125e9c1d..af530a3a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,6 +6,8 @@ platform: - x64 install: +- cmd: choco install -y innosetup +- cmd: set PATH=C:\Program Files (x86)\Inno Setup 6;%PATH% - cmd: if %platform%==Win32 set VCPKG_TRIPLET=x86-windows-static - cmd: if %platform%==x64 set VCPKG_TRIPLET=x64-windows-static - cmd: vcpkg install libsndfile:%VCPKG_TRIPLET% @@ -26,10 +28,24 @@ after_build: - cmd: rm -rf sfizz.lv2/Release - cmd: if %platform%==Win32 set RELEASE_ARCH=x86 - cmd: if %platform%==x64 set RELEASE_ARCH=x64 -- cmd: 7z a sfizz-%APPVEYOR_REPO_TAG_NAME%-%RELEASE_ARCH%-msvc-lv2.zip sfizz.lv2 -- cmd: 7z a sfizz-%APPVEYOR_REPO_TAG_NAME%-%RELEASE_ARCH%-msvc-library.zip src/Release/sfizz* +- cmd: 7z a sfizz-lv2-%APPVEYOR_REPO_TAG_NAME%-%RELEASE_ARCH%-msvc.zip sfizz.lv2 +- cmd: 7z a sfizz-library-%APPVEYOR_REPO_TAG_NAME%-%RELEASE_ARCH%-msvc.zip src/Release/sfizz* +- cmd: iscc.exe ./../innosetup.iss +- cmd: mv ./../Output/sfizz-lv2-setup.exe sfizz-lv2-%APPVEYOR_REPO_TAG_NAME%-%RELEASE_ARCH%-msvc-setup.exe artifacts: - name: Packages - path: 'CMakeBuild/sfizz*.zip' + path: 'CMakeBuild/sfizz-*-msvc*' +# Deploy to GitHub Releases +# See https://www.appveyor.com/docs/deployment/github/ +deploy: +- provider: GitHub + auth_token: + secure: B2BErA5BKmo5u1EE1o2Ss0uNjIe1RyeytHmwkdOuSYAFJysz3aEiSRlt3U08jADt + artifact: Packages + draft: false + prerelease: false + force_update: true + on: + appveyor_repo_tag: true diff --git a/innosetup.iss b/innosetup.iss index 3f2764a6..e022e698 100644 --- a/innosetup.iss +++ b/innosetup.iss @@ -1,51 +1,48 @@ -; Script generated by the Inno Script Studio Wizard. -; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! - -#define MyAppName "sfizz" -#define MyAppVersion "0.1.0" +#define MyAppName "sfizz-lv2" +#define MyAppVersion "0.3.0" #define MyAppPublisher "sfizz Team" #define MyAppURL "https://sfztools.github.io/sfizz/" -#define MyAppExeName "sfizz.exe" [Setup] +AlwaysShowDirOnReadyPage=yes ; NOTE: The value of AppId uniquely identifies this application. ; Do not use the same AppId value in installers for other applications. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) -AppId={{12B6CCCB-2AE1-49E4-B11E-6BDB2E21FFCA} +AppId={{55FB694B-774A-4BB8-B08C-F6C015821ECC} AppName={#MyAppName} -AppVersion={#MyAppVersion} -;AppVerName={#MyAppName} {#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} -DefaultDirName={pf}\{#MyAppName} -DefaultGroupName={#MyAppPublisher} -OutputBaseFilename=sfizz-setup +;AppVerName={#MyAppName} {#MyAppVersion} +AppVersion={#MyAppVersion} +ArchitecturesAllowed=x86 x64 +ArchitecturesInstallIn64BitMode=x64 Compression=lzma SolidCompression=yes -LicenseFile=setup\LICENSE.txt +DefaultDirName={commoncf}\LV2 +DefaultGroupName={#MyAppPublisher} +DisableDirPage=yes +LicenseFile=CMakeBuild\sfizz.lv2\LICENSE.md +OutputBaseFilename={#MyAppName}-setup +UninstallFilesDir={commonpf}\{#MyAppName} +WizardImageFile="C:\Program Files (x86)\Inno Setup 6\WizModernImage-IS.bmp" +WizardSmallImageFile="C:\Program Files (x86)\Inno Setup 6\WizModernSmallImage-IS.bmp" [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" -Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl" - -[Tasks] -Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked -Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1 [Files] -Source: "setup\sfizz.exe"; DestDir: {app}; Flags: ignoreversion -Source: "setup\vc_redist.x64.exe"; DestDir: {tmp}; Flags: deleteafterinstall -Source: "setup\LICENSE.txt"; DestDir: {app}; Flags: ignoreversion +Source: "CMakeBuild\sfizz.lv2\sfizz.dll"; DestDir: {commoncf}\LV2\sfizz.lv2; Flags: ignoreversion +Source: "CMakeBuild\sfizz.lv2\manifest.ttl"; DestDir: {commoncf}\LV2\sfizz.lv2 +Source: "CMakeBuild\sfizz.lv2\sfizz.ttl"; DestDir: {commoncf}\LV2\sfizz.lv2 +Source: "CMakeBuild\sfizz.lv2\lgpl-3.0.txt"; DestDir: {commonpf}\{#MyAppName} +Source: "CMakeBuild\sfizz.lv2\LICENSE.md"; DestDir: {commonpf}\{#MyAppName} +;Source: "setup\vc_redist.x64.exe"; DestDir: {tmp}; Flags: deleteafterinstall ; NOTE: Don't use "Flags: ignoreversion" on any shared system files -[Icons] -Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" -Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon - -[Run] -Filename: {tmp}\vc_redist.x64.exe; \ +;[Run] +;Filename: {tmp}\vc_redist.x64.exe; \ Parameters: "/install /passive /norestart"; \ StatusMsg: "Installing Microsoft Visual C++ 2015-2019 Redistributable (x64)..." -Filename: {app}\{#MyAppExeName}; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent +;Filename: {app}\{#MyAppExeName}; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent