|
9 | 9 | env: |
10 | 10 | EXECUTABLE_NAME: evidenceangel-ui |
11 | 11 | CARGO_KEEP_CONSOLE_ON_WINDOWS_FEATURE: windows-keep-console-window |
12 | | - CARGO_EXTRA_BUILD_PARAMS: --features ui --bin evidenceangel-ui |
| 12 | + # Build params for the UI |
| 13 | + CARGO_EXTRA_BUILD_PARAMS: -p ui |
13 | 14 |
|
14 | 15 | jobs: |
15 | 16 | create-release: |
@@ -80,24 +81,21 @@ jobs: |
80 | 81 | command: "build" |
81 | 82 | target: ${{ matrix.platform.target }} |
82 | 83 | toolchain: ${{ matrix.toolchain }} |
83 | | - args: "--features cli --bin evidenceangel-cli --locked --release" |
| 84 | + args: "-p cli --locked --release" |
84 | 85 | strip: true |
85 | 86 | - name: Rename binary (linux and macos) |
86 | 87 | run: mv target/${{ matrix.platform.target }}/release/evidenceangel-cli target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} |
87 | 88 | if: matrix.platform.os_name != 'Windows-x86_64' |
88 | 89 | - name: Rename binary (windows) |
89 | 90 | run: mv target/${{ matrix.platform.target }}/release/evidenceangel-cli.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} |
90 | 91 | if: matrix.platform.os_name == 'Windows-x86_64' |
91 | | - - name: Generate SHA-256 |
92 | | - run: shasum -a 256 target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} | cut -d ' ' -f 1 > target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256 |
93 | 92 | - name: Release binary and SHA-256 checksum to GitHub |
94 | 93 | uses: softprops/action-gh-release@v1 |
95 | 94 | with: |
96 | 95 | tag_name: ${{ needs.create-release.outputs.CARGO_PKG_VERSION }} |
97 | 96 | prerelease: ${{ needs.create-release.outputs.CARGO_PKG_PRERELEASE }} |
98 | 97 | files: | |
99 | 98 | target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} |
100 | | - target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256 |
101 | 99 |
|
102 | 100 | build-gtk: |
103 | 101 | name: Build and Publish (${{ matrix.platform.os_name }}) |
@@ -211,12 +209,12 @@ jobs: |
211 | 209 | cp bundle/bin/${{ env.EXECUTABLE_NAME }}-${{ matrix.platform.file_suffix }}.exe target/release/evidenceangel-ui.exe |
212 | 210 | cp bundle/bin/${{ env.EXECUTABLE_NAME }}-console-${{ matrix.platform.file_suffix }}.exe target/release/evidenceangel-ui-console.exe |
213 | 211 | echo Building CLI executable... |
214 | | - cargo build --release -F cli --bin evidenceangel-cli |
| 212 | + cargo build --release -p cli |
215 | 213 |
|
216 | 214 | echo Generating Wix script... |
217 | 215 | rm -rf ${{ steps.wingtk-install.outputs.BASE_DIR }}/include |
218 | 216 | rm -rf ${{ steps.wingtk-install.outputs.BASE_DIR }}/bin/*.exe |
219 | | - pushd wix || exit |
| 217 | + pushd ui/wix || exit |
220 | 218 | GTK4_PATH="${{ steps.wingtk-install.outputs.BASE_DIR }}" ./generate_wix_script.sh |
221 | 219 | sed -i 's|/d/|D:/|g' main.wxs |
222 | 220 | popd || exit |
|
0 commit comments