From ba57ff2d820a54c36a0ffff63fa2e3e402b41e18 Mon Sep 17 00:00:00 2001 From: Hannes Kuchelmeister Date: Wed, 23 Feb 2022 13:43:26 +0100 Subject: [PATCH] build of setup .exe --- .github/workflows/build_and_publish.yml | 8 +++-- .gitignore | 5 ++- create_windows_installer.sh | 10 ++++++ setup.iss | 43 +++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 3 deletions(-) create mode 100755 create_windows_installer.sh create mode 100644 setup.iss diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 7abcb2c..d3709e0 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -25,14 +25,17 @@ jobs: - uses: actions/checkout@v2 - name: Build (Windows) run: docker-compose -f docker-compose.windows.yml up - - name: rename windows artifact - run: mv package.zip windows.zip + - name: Make Windows Installer + run: ./create_windows_installer.sh + - name: Rename Windows Artifact + run: mv package.zip windows-portable.zip - name: Upload Artifact uses: actions/upload-artifact@v2.3.1 with: name: executables path: | *.zip + *.exe publish: needs: [build, build-windows] @@ -47,3 +50,4 @@ jobs: files: | **/*.AppImage **/*.zip + **/*.exe diff --git a/.gitignore b/.gitignore index dcaef9e..20c8f93 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ /target -*.zip +/Output +/package /libs +*.zip +*.exe diff --git a/create_windows_installer.sh b/create_windows_installer.sh new file mode 100755 index 0000000..830f4fd --- /dev/null +++ b/create_windows_installer.sh @@ -0,0 +1,10 @@ +unzip -o package.zip +docker rm setup +docker container create --name setup amake/innosetup setup.iss +docker cp ./package setup:/work/ +docker cp setup.iss setup:/work/ +docker cp LICENSE.md setup:/work/ +docker start -i -a setup +docker cp setup:/work/Output/. . +docker rm setup +rm -r package diff --git a/setup.iss b/setup.iss new file mode 100644 index 0000000..2ebf6e2 --- /dev/null +++ b/setup.iss @@ -0,0 +1,43 @@ +; Script generated by the Inno Setup Script Wizard. +; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! + +[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={{0AD7C555-49E0-47FC-A6ED-22677FD5AD28} +AppName=Focus Annotator +AppVersion=0.1.0 +;AppVerName=Focus Annotator 0.1.0 +AppPublisher=Hannes Fredrik Kuchelmeister +AppPublisherURL=https://github.com/13hannes11/focus_annotator +AppSupportURL=https://github.com/13hannes11/focus_annotator +AppUpdatesURL=https://github.com/13hannes11/focus_annotator +DefaultDirName={autopf}\Focus Annotator +DisableProgramGroupPage=yes +LicenseFile=LICENSE.md +; Uncomment the following line to run in non administrative install mode (install for current user only.) +;PrivilegesRequired=lowest +PrivilegesRequiredOverridesAllowed=dialog +OutputBaseFilename=focus_annotator_setup +Compression=lzma +SolidCompression=yes +WizardStyle=modern + +[Languages] +Name: "english"; MessagesFile: "compiler:Default.isl" + +[Tasks] +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked + +[Files] +Source: "package\focus-annotator.exe"; DestDir: "{app}"; Flags: ignoreversion +Source: "package\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs +; NOTE: Don't use "Flags: ignoreversion" on any shared system files + +[Icons] +Name: "{autoprograms}\Focus Annotator"; Filename: "{app}\focus-annotator.exe" +Name: "{autodesktop}\Focus Annotator"; Filename: "{app}\focus-annotator.exe"; Tasks: desktopicon + +[Run] +Filename: "{app}\focus-annotator.exe"; Description: "{cm:LaunchProgram,Focus Annotator}"; Flags: nowait postinstall skipifsilent +