mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[misc] move appx generation to Makefile
This commit is contained in:
parent
7ec8db5602
commit
a4b19ddf1a
4 changed files with 23 additions and 14 deletions
|
@ -235,6 +235,8 @@ top_builddir = @top_builddir@
|
|||
top_srcdir = @top_srcdir@
|
||||
SUBDIRS = src
|
||||
TARGET = rufus
|
||||
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/
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
|
@ -508,6 +510,13 @@ release: all
|
|||
@mv $(TARGET)$(EXEEXT) $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)
|
||||
@cmd.exe //c _sign.cmd $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)
|
||||
|
||||
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
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue