Skip to content

Commit

Permalink
test compile setup and ship
Browse files Browse the repository at this point in the history
  • Loading branch information
Grégoire Henry committed Nov 15, 2023
1 parent f98ca56 commit 6fc5548
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Test Inno
run: iscc /?

- name: Test Inno 2
run: ISCC.exe /?

- name: Cache Rust dependencies
uses: actions/cache@v3
with:
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
- name: Build examples
run: cargo build -r --example viewer-picker && strip target/release/examples/viewer-picker


- name: Make bundle
run: |
mkdir -p bin/ubuntu
Expand All @@ -42,11 +41,12 @@ jobs:
cd bin/ubuntu
cp -r examples/thermal/cfg .
tar cvzf kalast-${{ github.ref_name }}-ubuntu.tar.gz *
mv kalast-${{ github.ref_name }}-ubuntu.tar.gz ..
- name: Release
uses: softprops/action-gh-release@v1
with:
files: bin/ubuntu/kalast-${{ github.ref_name }}-ubuntu.tar.gz
files: bin/kalast-${{ github.ref_name }}-ubuntu.tar.gz
prerelease: true

release-macos:
Expand Down Expand Up @@ -84,11 +84,12 @@ jobs:
cd bin/macos
cp -r examples/thermal/cfg .
tar cvzf kalast-${{ github.ref_name }}-macos.tar.gz *
mv kalast-${{ github.ref_name }}-macos.tar.gz ..
- name: Release
uses: softprops/action-gh-release@v1
with:
files: bin/macos/kalast-${{ github.ref_name }}-macos.tar.gz
files: bin/kalast-${{ github.ref_name }}-macos.tar.gz
prerelease: true

release-windows:
Expand Down Expand Up @@ -119,7 +120,6 @@ jobs:
- name: Build examples
run: cargo build -r --example viewer-picker


- name: Make bundle
run: |
mkdir -p bin/win
Expand All @@ -134,9 +134,15 @@ jobs:
cd bin/win
cp -r examples/thermal/cfg .
Compress-Archive * kalast-${{ github.ref_name }}-win.zip
mv kalast-${{ github.ref_name }}-win.zip ..
- name: Try compile Inno
run: cd bin && iscc ./installer.iss

- name: Release
uses: softprops/action-gh-release@v1
with:
files: bin/win/kalast-${{ github.ref_name }}-win.zip
files: |
bin/kalast-${{ github.ref_name }}-win.zip
bin/setup-kalast-${{ github.ref_name }}.exe
prerelease: true
14 changes: 4 additions & 10 deletions bin/installer.iss
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define NAME "kalast"
#define VERSION "0.3.6"
#define ROOT "C:\projects\kalast"
#define VERSION "0.3.8"
#define ROOT ".."
#define URL "https://github.com/GregoireHENRY/kalast"
#define PUBLISHER "NT Productions"

Expand All @@ -20,7 +17,7 @@ CreateAppDir=yes
DefaultDirName=C:\Program Files\{#NAME}
DefaultGroupName={#NAME}
DisableWelcomePage=no
OutputDir={#ROOT}\bin\releases
OutputDir=.
OutputBaseFilename=setup-{#NAME}-v{#VERSION}
Compression=lzma
SolidCompression=yes
Expand All @@ -34,7 +31,4 @@ Name: "{group}\{#NAME}"; Filename: "{app}\{#NAME}.exe"; WorkingDir: "{app}"; Ico
Name: "english"; MessagesFile: "compiler:Default.isl"

[Files]
Source: "{#ROOT}\bin\releases\{#NAME}-v{#VERSION}-win\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#ROOT}\include\*"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "{#ROOT}\include\win\*"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "{#ROOT}\README.md"; DestDir: "{app}";
Source: ".\win\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

0 comments on commit 6fc5548

Please sign in to comment.