From 89db6697e7a5d9c6954d444e7669d185a347868f Mon Sep 17 00:00:00 2001 From: Kevron Rees Date: Thu, 4 Apr 2013 13:40:47 -0700 Subject: [PATCH] fixed icon, makefile and added config to enable wgt building/installing --- Makefile | 22 ++++++++++++++++------ config.xml | 7 +++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 config.xml diff --git a/Makefile b/Makefile index 50a1ed0..20b0c31 100644 --- 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 index 0000000..230570b --- /dev/null +++ b/config.xml @@ -0,0 +1,7 @@ + + + + + + GhostCluster + -- 2.7.4