Make OS X app bundle of client
This commit is contained in:
parent
314335dead
commit
cec81f2f71
|
@ -0,0 +1,2 @@
|
|||
MarketplaceChat.app.zip
|
||||
MarketplaceChat.app/
|
|
@ -0,0 +1,24 @@
|
|||
APP_NAME=MarketplaceChat.app
|
||||
APP_SOURCES=index.html index.js marketplace.js style.css
|
||||
RESOURCES=$(wildcard app-resources/*)
|
||||
|
||||
all: $(APP_NAME).zip
|
||||
|
||||
$(APP_NAME).zip: $(APP_NAME)
|
||||
zip -r $@ $<
|
||||
|
||||
$(APP_NAME): $(APP_SOURCES)
|
||||
echo RESOURCES $(RESOURCES)
|
||||
rm -rf $@
|
||||
mkdir -p $@/Contents/MacOS
|
||||
mkdir -p $@/Contents/Resources
|
||||
cp app-resources/Info.plist $@/Contents
|
||||
cp app-resources/boot.sh $@/Contents/MacOS
|
||||
cp app-resources/app.icns $@/Contents/Resources
|
||||
cp -r bootstrap $@/Contents/Resources
|
||||
cp jquery*js $@/Contents/Resources
|
||||
cp $(APP_SOURCES) $@/Contents/Resources
|
||||
chmod a+x $@/Contents/MacOS/boot.sh
|
||||
|
||||
clean:
|
||||
rm -rf $(APP_NAME) $(APP_NAME).zip
|
|
@ -0,0 +1,28 @@
|
|||
<?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>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>boot.sh</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>app.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.leastfixedpoint.js-marketplace.chat-demo</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>chat-demo</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>chat-demo 0.0.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>0.0.0</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.6</string>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd "$(dirname "$0")"/../Resources
|
||||
open index.html
|
Loading…
Reference in New Issue