diff --git a/.gitignore b/.gitignore index 39731490..de2e5538 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ config.*.json .vscode +*.temp # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7526c1d3..c8b3e0d9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -47,7 +47,7 @@ jobs: - script: pip install pyinstaller name: 'pyinstaller' - - bash: envsubst < run.py > run.py + - bash: envsubst < run.py > run.py name: replaceBuild - script: pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec @@ -90,7 +90,7 @@ jobs: - script: pip install pyinstaller name: 'pyinstaller' - - script: sed -i -e "s/\${BUILD_SOURCEBRANCHNAME}/${BUILD_SOURCEBRANCHNAME}/" -e "s/\${SYSTEM_PIPELINESTARTTIME}/$(date)/" run.py + - bash: sed -i.temp -e "s/\${BUILD_SOURCEBRANCHNAME}/${BUILD_SOURCEBRANCHNAME}/" -e "s/\${SYSTEM_PIPELINESTARTTIME}/$(date)/" run.py name: 'replaceBuild' - script: pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec