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'