Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -17,10 +17,11 @@ pack: all ver docs xpm src gtk3: gtk3.xml.gz zip: pyz print-%: @echo $*=$($*) + # Convert between internal GtkBuilder-gzipped file and uncompressed xml gtk3.xml.gz: gtk3.xml gzip -c9 < gtk3.xml > gtk3.xml.gz glade: @@ -36,24 +37,23 @@ clean: rm *.pyc */*.pyc rm -r __pycache__ */__pycache__ #-- bundles -xpm: deb pyz bin rpm exe +xpm: deb pyz tar rpm exe deb: - $(PACK) $(OPTS) $(DEPS) -t deb -p "$(NAME)-VERSION.deb" st2.py + $(PACK) $(OPTS) $(DEPS) -t $@ -p "$(NAME)-VERSION.deb" st2.py rpm: - $(PACK) $(OPTS) $(DEPS) -t rpm -p "$(NAME)-VERSION.rpm" st2.py -bin: - $(PACK) $(OPTS) $(DEPS) -t tar -p "$(NAME)-VERSION.bin.txz" st2.py + $(PACK) $(OPTS) $(DEPS) -t $@ -p "$(NAME)-VERSION.rpm" st2.py +tar: + $(PACK) $(OPTS) $(DEPS) -t $@ -p "$(NAME)-VERSION.bin.txz" st2.py +exe: + $(PACK) $(OPTS) $(DEPS) -t $@ -p "$(NAME)-VERSION.exe" st2.py pyz: #@BUG: relative package references leave a /tmp/doc/ folder - $(PACK) -u preprocess=py -DPKG_PYZ -s src -t zip -p ".pyz" --prefix=./ --verbose -f .zip.py st2.py - echo "#!/usr/bin/env python" | cat - ".pyz" > "$(NAME)-$(VERSION).pyz" - chmod +x "$(NAME)-$(VERSION).pyz" ; rm ".pyz" -exe: - $(PACK) $(OPTS) $(DEPS) -t exe -p "$(NAME)-VERSION.exe" st2.py + $(PACK) -u packfile -s src -t zip --zip-shebang "/usr/bin/env python" \ + -f -p "$(NAME)-$(VERSION).pyz" --prefix=./ --verbose .zip.py st2.py src: cd .. && pax -wvJf streamtuner2/streamtuner2-$(VERSION).src.txz \ streamtuner2/*.{py,png,svg,desktop} streamtuner2/channels/*.{py,png} \ streamtuner2/{bundle/,help/,gtk,NEWS,READ,PACK,PKG,CRED,Make,bin,.zip}* Index: Packfile ================================================================== --- Packfile +++ Packfile @@ -2,11 +2,16 @@ # Applies minor file tweaks right before -t package generation. all: preprocess $(PACK_TYPE) # More selective file rewriting -preprocess: usr/share/streamtuner2/channels/search.pym +preprocess: $(shell find . -name search.py)m %.pym: %.py preprocess -D $(PKG_FLAG) -o $< $< deb: # complainy lintian needs a custom changelog.gz gzip -9c usr/share/doc/streamtuner2/NEWS > usr/share/doc/streamtuner2/changelog.gz +zip: +rpm: +exe: +src: +tar: Index: channels/search.py ================================================================== --- channels/search.py +++ channels/search.py @@ -154,11 +154,11 @@ #?? return False - # #ifdef PKG_PYZ + # #ifdef PKG_ZIP finder = """ iVBORw0KGgoAAAANSUhEUgAAAIQAAACCCAYAAACHHWC6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAADnQAAA50BvNxDqgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURBVHic7b15lF1Xfef72fvcoW6NUpVKqioNJVmeBcYD4AELOzwIUxgDgaRDoLtZq9NNhn55nWSx8ggQOgG6F5081iNp0nTSnZfuDB1oQsIQMMGAY9lMNpJlG8tSaS5ZNUs13Ons3/tj73POPueee6tKkm2Z5b3Wrbr7nnPP2Xf/fvs3fH+/3z5KRHiuNKWU8vvyXBr8c6Sp58KcOkbQQOBeAoRAKCLm2Rzbj1u77BnCMUMAlIEeoAIYYMm9Gs8zxaVr+tkeQKemlNJAAegFtgA/Cfw9cBuwFegHillV8ny78HbZMoQnGXqwzPBe4DPAC4CPAde6z7uBwvNMcWnaZcsQgAJKwCbgd4H3Y9UGwBXA vwV2uuMVIHieKS6+Xe4MUQD+E/DTOcfvAN4J7AA2Ypnncv49z4l2uU+gAf470Ghz/B3A3Vh7YgBrT1zuv+mybpfz5BksIzwAfKLNOQXgl4EbgFGs8fm8PXER7bJlCAc6NYBzwH8Fvtjm1AHg32Htis1YI/N5e+IC22XLEK4ZoArMAP838KM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