mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
add darwin builder
This commit is contained in:
parent
bd35e7b2d5
commit
0d2cad74a5
24
desktopapp/build-darwin.sh
Normal file
24
desktopapp/build-darwin.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
APP="BBGO.app"
|
||||
|
||||
mkdir -p $APP/Contents/{MacOS,Resources}
|
||||
go build -o $APP/Contents/MacOS/bbgo
|
||||
|
||||
cat > $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>bbgo</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>icon.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.bbgo.lorca</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOF
|
||||
|
||||
cp icons/icon.icns $APP/Contents/Resources/icon.icns
|
||||
find $APP
|
Loading…
Reference in New Issue
Block a user