Skip to content

Commit fc890c6

Browse files
provision script uses zigbuild
1 parent 1d04973 commit fc890c6

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ version = "0.1.0" # Version of your application
2929
osx_url_schemes = ["com.codeitlikemiley.snip"] # URL schemes your application supports
3030
script = "scripts/postinstall" # Path to your postinstall script
3131

32+
[profile.release]
33+
lto = true
34+
codegen-units = 1
35+
strip = true

provision.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
cargo clean
44
rm snip.pkg
5-
cargo build --release
5+
cargo zigbuild --release
66
cargo bundle --release
7-
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
7+
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

scripts/postinstall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ fi
1818

1919

2020
# Create the symlink in ~/.local/bin
21-
ln -s "/Applications/Snip.app/Contents/MacOS/snip" "$USER_HOME/.local/bin/snip"
21+
ln -s "/Applications/snip.app/Contents/MacOS/snip" "$USER_HOME/.local/bin/snip"

snip.pkg

-219 KB
Binary file not shown.

0 commit comments

Comments
 (0)