Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğ
Ğcli-v2s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
d0p1
Ğcli-v2s
Commits
1db6c51d
Commit
1db6c51d
authored
8 months ago
by
d0p1
Browse files
Options
Downloads
Patches
Plain Diff
fix macos package
parent
8820e6de
Branches
master
No related tags found
No related merge requests found
Pipeline
#37394
passed
8 months ago
Stage: build_macos
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-10
6 additions, 10 deletions
.gitlab-ci.yml
with
6 additions
and
10 deletions
.gitlab-ci.yml
+
6
−
10
View file @
1db6c51d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment