Skip to content

Commit

Permalink
provision script uses zigbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
codeitlikemiley committed Dec 18, 2023
1 parent 1d04973 commit fc890c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ version = "0.1.0" # Version of your application
osx_url_schemes = ["com.codeitlikemiley.snip"] # URL schemes your application supports
script = "scripts/postinstall" # Path to your postinstall script

[profile.release]
lto = true
codegen-units = 1
strip = true
4 changes: 2 additions & 2 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

cargo clean
rm snip.pkg
cargo build --release
cargo zigbuild --release
cargo bundle --release
pkgbuild --root ./target/release/bundle/osx/Snip.app --install-location "/Applications/Snip.app" --identifier com.codeitlikemiley.snip --version 0.1.0 --scripts ./scripts snip.pkg
pkgbuild --root ./target/release/bundle/osx/snip.app --install-location "/Applications/snip.app" --identifier com.codeitlikemiley.snip --version 0.1.0 --scripts ./scripts snip.pkg
2 changes: 1 addition & 1 deletion scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ fi


# Create the symlink in ~/.local/bin
ln -s "/Applications/Snip.app/Contents/MacOS/snip" "$USER_HOME/.local/bin/snip"
ln -s "/Applications/snip.app/Contents/MacOS/snip" "$USER_HOME/.local/bin/snip"
Binary file modified snip.pkg
Binary file not shown.

0 comments on commit fc890c6

Please sign in to comment.