From 3a0e81f5d0927985e49a5cdf4b147b903c7a13c8 Mon Sep 17 00:00:00 2001 From: New Future Date: Sat, 20 Apr 2019 19:26:54 +0800 Subject: [PATCH] ci(azure): build version --- azure-pipelines.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1c191dec..0c5e8a2f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -40,6 +40,9 @@ jobs: - script: pip install pyinstaller name: 'pyinstaller' + + - bash: envsubst < run.py > run.py + name: ReplaceVersion - script: pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec name: 'build' @@ -81,6 +84,9 @@ jobs: - script: pip install pyinstaller name: 'pyinstaller' + - script: sed -i -e "s/\${BUILD_SOURCEBRANCHNAME}/${BUILD_SOURCEBRANCHNAME}/" -e "s/\${SYSTEM_PIPELINESTARTTIME}/$(date)/" run.py + name: 'replaceBuild' + - script: pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec name: 'build'