diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..52e11b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +MarketplaceChat.app.zip +MarketplaceChat.app/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1825172 --- /dev/null +++ b/Makefile @@ -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 diff --git a/app-resources/Info.plist b/app-resources/Info.plist new file mode 100644 index 0000000..3e42d52 --- /dev/null +++ b/app-resources/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + boot.sh + CFBundleIconFile + app.icns + CFBundleIdentifier + com.leastfixedpoint.js-marketplace.chat-demo + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + chat-demo + CFBundlePackageType + APPL + CFBundleShortVersionString + chat-demo 0.0.0 + CFBundleSignature + ???? + CFBundleVersion + 0.0.0 + LSMinimumSystemVersion + 10.6 + + diff --git a/app-resources/app.icns b/app-resources/app.icns new file mode 100644 index 0000000..4d50fa4 Binary files /dev/null and b/app-resources/app.icns differ diff --git a/app-resources/boot.sh b/app-resources/boot.sh new file mode 100644 index 0000000..03e2f5a --- /dev/null +++ b/app-resources/boot.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd "$(dirname "$0")"/../Resources +open index.html