Skip to content

Commit 59daf62

Browse files
committed
Fix: Build workflow: Correct paths for package types
Update package build paths to include the correct target directory Update build workflow to use correct paths for packaging different types
1 parent bfac95d commit 59daf62

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,17 @@ jobs:
102102
if: matrix.package_type == 'windows'
103103
run: |
104104
cargo install cargo-wix --force
105-
cargo wix -- --release --target ${{ matrix.target }} --manifest-path app/Cargo.toml
105+
cd app
106+
cargo wix init
107+
cargo wix
106108
shell: bash
107109

108110
- name: Package macOS (.dmg)
109111
if: matrix.package_type == 'mac'
110112
run: |
111113
cd app
112114
cargo install cargo-bundle --force
113-
cargo bundle --release --target ${{ matrix.target }}
115+
cargo bundle --release --target ${{ matrix.target }} --format dmg
114116
env:
115117
BUNDLE_ID: com.singhropar.gitswift
116118
BUNDLE_NAME: gitswift
@@ -127,5 +129,5 @@ jobs:
127129
name: packages-${{ matrix.os }}
128130
path: |
129131
app/target/${{ matrix.target }}/debian/*.deb
130-
target/wix/*.msi
131-
app/target/release/bundle/dmg/*.dmg
132+
app/target/wix/*.msi
133+
app/target/aarch64-apple-darwin/release/bundle/osx/*.dmg

0 commit comments

Comments
 (0)