1 Star 0 Fork 0

btwise/rufus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile.am 1008 Bytes
一键复制 编辑 原始数据 按行查看 历史
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/
# This step produces the UPX compressed and signed releases that are made available for public download
# NB: UPX v3.09 or later is needed for LZMA compression (http://upx.sourceforge.net/)
release: all
@mv src/$(TARGET)$(EXEEXT) .
@sleep 1
@$(STRIP) $(TARGET)$(EXEEXT)
@upx --lzma --best $(TARGET)$(EXEEXT)
@mv $(TARGET)$(EXEEXT) $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)
@cmd.exe //c _sign.cmd $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)
appx:
$(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
@mv arm/Release/$(TARGET)$(EXEEXT) $(TARGET)-$(VERSION)_arm$(EXEEXT)
@mv arm64/Release/$(TARGET)$(EXEEXT) $(TARGET)-$(VERSION)_arm64$(EXEEXT)
@mv res/appstore/Rufus-$(VERSION).appx .
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/btwise/rufus.git
git@gitee.com:btwise/rufus.git
btwise
rufus
rufus
master

搜索帮助