Skip to content
Snippets Groups Projects
Commit 1db6c51d authored by d0p1's avatar d0p1
Browse files

fix macos package

parent 8820e6de
Branches master
No related tags found
No related merge requests found
Pipeline #37394 passed
......@@ -33,6 +33,8 @@ build_macos:
stage: build_macos
image: poka/rust-osxcross:latest
script:
- apt update
- apt -y install hfsplus genisoimage
# Install the required dependencies
- rustup target add x86_64-apple-darwin
# Build the project for macOS
......@@ -42,14 +44,9 @@ build_macos:
- mkdir -p target/macos
- cargo bundle --release --target x86_64-apple-darwin
# Add Info.plist and install_gcli.scpt
- cd target/x86_64-apple-darwin/release/bundle/osx
- mkdir -p gcli.app/Contents/Resources/Scripts
- cp /opt/Info.plist gcli.app/Contents/Info.plist
- cp /opt/install_gcli.scpt gcli.app/Contents/Resources/Scripts/install_gcli.scpt
- echo -e "Just unzip gcli.app and open it.\nenjoy" > instructions.txt
# Zip the gcli.app before moving it
- zip -r gcli.zip gcli.app instructions.txt
- mv gcli.zip ../../../../macos/ # target/macos/
- cd target/x86_64-apple-darwin/release/bundle/
- genisoimage -V gcli -D -R -apple -no-pad -o gcli.dmg osx
- mv gcli.dmg ../../../macos/ # target/macos/
artifacts:
paths:
- target/macos
......@@ -57,8 +54,7 @@ build_macos:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- target/macos
only:
- tags
release:
stage: release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment