mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-24 15:55:14 +00:00
24 lines
614 B
Bash
24 lines
614 B
Bash
#!/bin/sh
|
|
APP="BBGO.app"
|
|
APP_DIR=build/$APP
|
|
|
|
go build -o $APP_DIR/Contents/MacOS/bbgo-desktop ./cmd/bbgo-desktop
|
|
|
|
cat > $APP_DIR/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>bbgo-desktop</string>
|
|
<key>CFBundleIconFile</key>
|
|
<string>icon.icns</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>com.bbgo.lorca</string>
|
|
</dict>
|
|
</plist>
|
|
EOF
|
|
|
|
cp -v desktop/icons/icon.icns $APP_DIR/Contents/Resources/icon.icns
|
|
find $APP_DIR
|