Skip to content

Commit

Permalink
Add macos bundle script and bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
WINSDK committed Apr 20, 2024
1 parent 9701733 commit 3b5a6a4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "bite"
description = "Disassembler"
version = "0.2.1"
version = "0.3.0"
edition = "2021"

[dependencies]
Expand Down
Binary file added assets/iconx256.icns
Binary file not shown.
28 changes: 28 additions & 0 deletions bundle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
# Creates macos bundle in ./target/bite.app.

set -e
mkdir -p ./target/bite.app/Contents/MacOS
mkdir -p ./target/bite.app/Contents/Resources
cp ./target/release/bite ./target/bite.app/Contents/MacOS/bite
cp ./assets/iconx256.icns ./target/bite.app/Contents/Resources/shortcut.icns
cat > ./target/bite.app/Contents/Info.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>bite</string>
<key>CFBundleIconFile</key>
<string>shortcut.icns</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>1.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
EOF

0 comments on commit 3b5a6a4

Please sign in to comment.