2 Star 8 Fork 4

CookCSharp/CookPopularInstaller

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
Assets
CookPopularInstaller.Admin
CookPopularInstaller.CSharpCustomAction
CookPopularInstaller.CustomUI.Exe
CookPopularInstaller.CustomUI.Patch
CookPopularInstaller.CustomUI
CookPopularInstaller.Exe
CookPopularInstaller.Generate.CommandLine
CookPopularInstaller.Generate
CookPopularInstaller.Msi
CookPopularInstaller.Patch
CookPopularInstaller.Toolkit
CookPopularInstaller.Uninstall
CookPopularInstaller.UnitTest
Effect
Libraries
Setup
.gitattributes
.gitignore
.gitlab-ci.yml
CookPopularInstaller.Build.props
CookPopularInstaller.sln
Directory.Build.props
LICENSE
Settings.XamlStyler
build.py
package-backup.json
package.json
readme.md
releasenote.md
upgrade_code.json
克隆/下载
build.py 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
import os
import sys
import shutil
generate_build_cmd = 'dotnet publish CookPopularInstaller.Generate\\CookPopularInstaller.Generate.csproj -c Release -f net48 -t:Rebuild -p:Platform=AnyCPU -p:MaxCpuCount=4 -o .\Output\Publish --self-contained true'
csharpcustomaction_build_cmd = 'MSBuild CookPopularInstaller.CSharpCustomAction\\CookPopularInstaller.CSharpCustomAction.csproj -p:Configuration=Release -t:Restore,Rebuild -p:Platform=AnyCPU -p:MaxCpuCount=4 -p:OutputPath=..\Output\Publish'
uninstall_build_cmd = 'dotnet build CookPopularInstaller.Uninstall\\CookPopularInstaller.Uninstall.csproj -c Release -t:Rebuild -p:Platform=AnyCPU -p:MaxCpuCount=4'
admin_build_cmd = 'dotnet build CookPopularInstaller.Admin\\CookPopularInstaller.Admin.csproj -c Release -t:Rebuild -p:Platform=AnyCPU -p:MaxCpuCount=4'
generate_commandLine_build_cmd = 'dotnet build CookPopularInstaller.Generate.CommandLine\\CookPopularInstaller.Generate.CommandLine.csproj -c Release -t:Restore,Rebuild -p:Platform=AnyCPU -p:MaxCpuCount=4'
def build_installer():
os.system(generate_build_cmd)
os.system(csharpcustomaction_build_cmd)
os.system(uninstall_build_cmd)
os.system(admin_build_cmd)
os.system(generate_commandLine_build_cmd)
if __name__ == '__main__':
if len(sys.argv) == 1:
print('Debug Mode ...')
build_installer()
# elif len(sys.argv) == 2 and sys.argv[1] == "Release":
# print('Release Mode ...')
# if os.path.exists('C:\Build\\cookpopularinstaller\\'):
# shutil.rmtree('C:\Build\\cookpopularinstaller\\')
# os.system('xcopy /E/Y . "C:\Build\\cookpopularinstaller\\"')
# os.chdir('C:\\Build\\cookpopularinstaller\\')
# build_installer()
else:
print('Debug: "python build", Release: "python build Release"')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/CookCSharp/CookPopularInstaller.git
git@gitee.com:CookCSharp/CookPopularInstaller.git
CookCSharp
CookPopularInstaller
CookPopularInstaller
master

搜索帮助