2011-12-05 11:19:05 +00:00
|
|
|
SUBDIRS = src
|
|
|
|
TARGET = rufus
|
2017-05-09 09:54:13 +00:00
|
|
|
TAGVER = $(shell git log --oneline | wc -l)
|
|
|
|
SEDCMD = s/^\([ \t]*\)Version="\([0-9]*\)\.\([0-9]*\)\.[0-9]*\.\([0-9]*\)"\(.*\)/\1Version="\2.\3.@@TAGVER@@.\4"\5/
|
2011-12-05 11:19:05 +00:00
|
|
|
|
2011-12-15 15:53:33 +00:00
|
|
|
# This step produces the UPX compressed and signed releases that are made available for public download
|
2013-06-25 21:50:22 +00:00
|
|
|
# NB: UPX v3.09 or later is needed for LZMA compression (http://upx.sourceforge.net/)
|
2011-12-05 11:19:05 +00:00
|
|
|
release: all
|
|
|
|
@mv src/$(TARGET)$(EXEEXT) .
|
2015-08-10 22:19:57 +00:00
|
|
|
@sleep 1
|
2011-12-05 11:19:05 +00:00
|
|
|
@$(STRIP) $(TARGET)$(EXEEXT)
|
2018-05-12 10:37:07 +00:00
|
|
|
@upx --lzma --best $(TARGET)$(EXEEXT)
|
2014-11-28 00:00:59 +00:00
|
|
|
@mv $(TARGET)$(EXEEXT) $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)
|
2014-12-15 18:42:21 +00:00
|
|
|
@cmd.exe //c _sign.cmd $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)
|
2017-05-09 09:54:13 +00:00
|
|
|
|
|
|
|
appx: $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)
|
|
|
|
$(file > cmd.sed,$(SEDCMD))
|
|
|
|
@sed -i -e "s/@@TAGVER@@/$(TAGVER)/g" cmd.sed
|
|
|
|
@sed -b -i -f cmd.sed res/appstore/AppxManifest.xml
|
|
|
|
@rm cmd.sed
|
|
|
|
@cd res/appstore; cmd.exe //c packme.cmd
|