Some updates to packaging firefoxos apps.
- read and set version from VERSION file
- remove application.zip from repo
- add application.zip and cordova.js file (that is copied) to
.gitignore
- added copy-js task before package (to ensure that cordova.js
exists
diff --git a/.gitignore b/.gitignore
index 0e3d093..d4a3b93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
node_modules/
.DS_Store
example/
+framework/application.zip
+framework/cordova-*.js
diff --git a/Makefile b/Makefile
index bc13b07..5481ac5 100644
--- a/Makefile
+++ b/Makefile
@@ -5,14 +5,16 @@
XPCSHELL ?= ~/Documents/mozilla/mozilla-central/obj-x86_64-apple-darwin11.4.2/dist/bin/xpcshell
ADB ?= adb
FOLDER = framework
-PGVERSION = 2.4.0
+VERSION := $(shell cat VERSION)
+
+
all :: packaged install
copy_js:
- cp lib/cordova.webos.js framework/cordova-$(PGVERSION).js
+ cp lib/cordova.firefoxos.js framework/cordova-$(VERSION).js
-package:
+package: copy_js
cd ./${FOLDER} && zip -X ./application.zip ./* -x application.zip
packaged: package
diff --git a/framework/application.zip b/framework/application.zip
deleted file mode 100644
index 2c469ce..0000000
--- a/framework/application.zip
+++ /dev/null
Binary files differ