fixed icon, makefile and added config to enable wgt building/installing
authorKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 4 Apr 2013 20:40:47 +0000 (13:40 -0700)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 4 Apr 2013 20:40:47 +0000 (13:40 -0700)
Makefile
config.xml [new file with mode: 0644]

index 50a1ed0..20b0c31 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,8 @@ ICON_DIR    = ${DESTDIR}/usr/share/pixmaps
 VERSION     = $(shell grep version manifest.json | cut -f4 -d"\"")
 PACKAGE     = $(PROJECT)-$(VERSION)
 
+FILES = index.html *.js *.css manifest.json *.png *.xml
+
 PKG_NAME := $(PROJECT)
 SPECFILE = $(addsuffix .spec, $(PKG_NAME))
 YAMLFILE = $(addsuffix .yaml, $(PKG_NAME))
@@ -13,14 +15,22 @@ YAMLFILE = $(addsuffix .yaml, $(PKG_NAME))
 all:
        @echo "Nothing to build"
 
+widget:
+       zip -r $(PKG_NAME).wgt $(FILES) assets
+
 install:
+       @echo "installing wgt widget file"
        mkdir -p $(INSTALL_DIR)/
-       cp -a assets $(INSTALL_DIR)/
-       cp index.html *.js *.css manifest.json $(PROJECT).png $(INSTALL_DIR)/
-       mkdir -p $(DESKTOP_DIR)/
-       cp $(PROJECT).desktop $(DESKTOP_DIR)/
-       mkdir -p $(ICON_DIR)/
-       cp $(PROJECT).png $(ICON_DIR)/$(PROJECT).png
+       cp $(PKG_NAME).wgt $(INSTALL_DIR)/
+
+#install:
+#      mkdir -p $(INSTALL_DIR)/
+#      cp -a assets $(INSTALL_DIR)/
+#      cp $(FILES) $(INSTALL_DIR)/
+#      mkdir -p $(DESKTOP_DIR)/
+#      cp $(PROJECT).desktop $(DESKTOP_DIR)/
+#      mkdir -p $(ICON_DIR)/
+#      cp $(PROJECT).png $(ICON_DIR)/$(PROJECT).png
 
 spec: 
        specify $<
diff --git a/config.xml b/config.xml
new file mode 100644 (file)
index 0000000..230570b
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/GhostCluster" version="1.0.0" viewmodes="maximized">
+    <tizen:application id="BVDmHsmARk" required_version="1.0"/>
+    <content src="index.html"/>
+    <icon src="GhostCluster.png"/>
+    <name>GhostCluster</name>
+</widget>