diff --git a/appveyor.yml b/appveyor.yml index 06098367bd3b492d25b610dd529e1a9d6baefb53..4b50efe2be49ddc6c21f0968a07744a85d6516f2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -48,9 +48,17 @@ build_script: - ".\\ci\\appveyor\\tests.cmd" - echo %errorlevel% + # Windows Installer + - if [%APPVEYOR_REPO_TAG_NAME%] neq [] choco install -y InnoSetup + - if [%APPVEYOR_REPO_TAG_NAME%] neq [] set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH% + - if [%APPVEYOR_REPO_TAG_NAME%] neq [] iscc %cd%\ci\appveyor\sakia.iss /DROOT_PATH=%cd% + - if [%APPVEYOR_REPO_TAG_NAME%] neq [] move %cd%\sakia.exe %cd%\sakia-%APPVEYOR_REPO_TAG_NAME%-win%PYTHON_ARCH%.exe + artifacts: - path: dist name: sakia-win$(PYTHON_ARCH) + - path: sakia*.exe + name: sakia-exe # upload to releases deploy: tag: $(APPVEYOR_REPO_TAG_NAME) @@ -58,7 +66,7 @@ deploy: provider: GitHub auth_token: secure: wbzlh6nx1zY1J1avlB0C3hKGm1abFNHBdM60u/U09i5Nam//D6kazvnv5ZBKdR89 - artifact: sakia-win$(PYTHON_ARCH) + artifact: /sakia-/ draft: true prerelease: true on: diff --git a/ci/appveyor/after_install.cmd b/ci/appveyor/after_install.cmd new file mode 100644 index 0000000000000000000000000000000000000000..4ed2b33cc065472277c1f2822615d0f0b7d33155 --- /dev/null +++ b/ci/appveyor/after_install.cmd @@ -0,0 +1,3 @@ +@ECHO OFF + +rd /s /q %APPDATA%\sakia \ No newline at end of file diff --git a/ci/appveyor/sakia.iss b/ci/appveyor/sakia.iss new file mode 100644 index 0000000000000000000000000000000000000000..6fec56124b5ae57d7aeef649e295e4dec6901f80 --- /dev/null +++ b/ci/appveyor/sakia.iss @@ -0,0 +1,65 @@ +#define MyAppName "Sakia" +#define MyAppPublisher "Sakia team" +#define MyAppURL "http://sakia-wallet.org" +#define MyAppExeName "sakia.exe" + +#if !Defined(ROOT_PATH) +#define ROOT_PATH "." +#endif + +#define MyAppSrc ROOT_PATH +#define MyAppExe ROOT_PATH + "\dist\sakia\" + MyAppExeName +#pragma message MyAppSrc + +#if !FileExists(MyAppExe) +#error "Unable to find MyAppExe" +#endif + +#define MyAppVerStr "0.20.0dev7" + +[Setup] +AppName={#MyAppName} +AppVersion={#MyAppVerStr} +AppPublisher={#MyAppPublisher} +AppPublisherURL={#MyAppURL} +AppSupportURL={#MyAppURL} +AppUpdatesURL={#MyAppURL} +DefaultDirName={pf}\{#MyAppName} +DisableDirPage=yes +DefaultGroupName={#MyAppName} +DisableProgramGroupPage=yes +OutputDir={#ROOT_PATH} +OutputBaseFilename={#MyAppName} +Compression=lzma +SolidCompression=yes +UninstallDisplayIcon={app}\{#MyAppExeName} + +[Languages] +Name: "english"; MessagesFile: "compiler:Default.isl" +Name: "french"; MessagesFile: "compiler:Languages\French.isl" + +[Tasks] +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked + +[Files] +Source: "{#MyAppSrc}\dist\sakia\*"; DestDir: "{app}\"; Flags: ignoreversion recursesubdirs +Source: "{#MyAppSrc}\sakia.ico"; DestDir: "{app}\"; Flags: ignoreversion recursesubdirs +Source: "{#MyAppSrc}\sakia.png"; DestDir: "{app}\"; Flags: ignoreversion recursesubdirs +Source: "{#MyAppSrc}\LICENSE"; DestDir: "{app}\"; Flags: ignoreversion recursesubdirs +Source: "{#MyAppSrc}\ci\appveyor\after_install.cmd"; DestDir: "{app}\"; Flags: ignoreversion + +[Icons] +Name: "{group}\{#MyAppName}"; IconFilename: "{app}\sakia.ico"; Filename: "{app}\{#MyAppExeName}" +Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" +Name: "{commondesktop}\{#MyAppName}"; IconFilename: "{app}\sakia.ico"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon + +[Run] +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent +Filename: "{app}\after_install.cmd"; Description: "Delete ALL existing data"; Flags: postinstall nowait skipifsilent unchecked + +[Setup] +; 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={{E01B0960-74D2-8ACD-734E-8B3CB033B07F} +LicenseFile="{#MyAppSrc}\LICENSE"