Open .slatepack file with the app #13

Merged
ardocrat merged 28 commits from slatepack_ext_file into master 2024-09-16 19:08:27 +03:00
Showing only changes of commit 0205e01b3c - Show all commits

View file

@ -29,24 +29,12 @@ rustup target add aarch64-apple-darwin
[[ $2 == "x86_64" ]] && arch+=(x86_64-apple-darwin) [[ $2 == "x86_64" ]] && arch+=(x86_64-apple-darwin)
[[ $2 == "arm" ]] && arch+=(aarch64-apple-darwin) [[ $2 == "arm" ]] && arch+=(aarch64-apple-darwin)
[[ $2 == "universal" ]]; arch+=(universal2-apple-darwin)
if [[ "$OSTYPE" != "darwin"* ]]; then # Start release build with zig linker, requires zig 0.12.1
rustup target add x86_64h-apple-darwin cargo install cargo-zigbuild
[[ $2 == "universal" ]] && arch+=(x86_64h-apple-darwin) cargo zigbuild --release --target ${arch}
else rm -rf .intentionally-empty-file.o
[[ $2 == "universal" ]] && arch+=(universal2-apple-darwin)
rm -rf target/x86_64-apple-darwin
rm -rf target/aarch64-apple-darwin
fi
# Start release build with zig linker on non-MacOS systems
if [[ "$OSTYPE" != "darwin"* ]]; then
cargo install cargo-zigbuild
cargo zigbuild --release --target ${arch}
rm -rf .intentionally-empty-file.o
else
cargo build --release --target ${arch}
fi
yes | cp -rf target/${arch}/release/grim macos/Grim.app/Contents/MacOS yes | cp -rf target/${arch}/release/grim macos/Grim.app/Contents/MacOS