Skip to content

Commit e14b6e6

Browse files
committed
Chore: Refactor macOS build process
Refactored the macOS build workflow to improve clarity and maintainability. Changes include: - Creating a dedicated directory for the installer. - Using `pkgbuild` to create the `.pkg` file.
1 parent 926cd69 commit e14b6e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ jobs:
117117
if: matrix.package_type == 'mac'
118118
run: |
119119
mkdir -p ~/gitswift-installer/user/local/bin
120+
mkdir -p artifacts
120121
cp app/target/${{ matrix.target }}/release/gitswift ~/gitswift-installer/user/local/bin/
121-
pkgbuild --identifier com.singhropar.gitswift --version 1.0 --install-location/ --root ~/gitswift-installer artifacts/gitswift.pkg
122+
pkgbuild --identifier com.singhropar.gitswift --version 1.0 --install-location / --root ~/gitswift-installer artifacts/gitswift.pkg
122123
env:
123124
BUNDLE_ID: com.singhropar.gitswift
124125
BUNDLE_NAME: gitswift

0 commit comments

Comments
 (0)