|
@@ -42,11 +42,6 @@ Get-ChildItem -Recurse -Include *.pyc | foreach ($_) { Remove-Item $_.FullName }
|
|
|
virtualenv .\venv
|
|
virtualenv .\venv
|
|
|
|
|
|
|
|
# Install dependencies
|
|
# Install dependencies
|
|
|
-# TODO: pip warns when installing from a git sha, so we need to set ErrorAction to
|
|
|
|
|
-# 'Continue'. See
|
|
|
|
|
-# https://github.com/pypa/pip/blob/fbc4b7ae5fee00f95bce9ba4b887b22681327bb1/pip/vcs/git.py#L77
|
|
|
|
|
-# This can be removed once pyinstaller 3.x is released and we upgrade
|
|
|
|
|
-$ErrorActionPreference = "Continue"
|
|
|
|
|
.\venv\Scripts\pip install pypiwin32==219
|
|
.\venv\Scripts\pip install pypiwin32==219
|
|
|
.\venv\Scripts\pip install -r requirements.txt
|
|
.\venv\Scripts\pip install -r requirements.txt
|
|
|
.\venv\Scripts\pip install --no-deps .
|
|
.\venv\Scripts\pip install --no-deps .
|
|
@@ -54,8 +49,9 @@ $ErrorActionPreference = "Continue"
|
|
|
|
|
|
|
|
# Build binary
|
|
# Build binary
|
|
|
# pyinstaller has lots of warnings, so we need to run with ErrorAction = Continue
|
|
# pyinstaller has lots of warnings, so we need to run with ErrorAction = Continue
|
|
|
|
|
+$ErrorActionPreference = "Continue"
|
|
|
.\venv\Scripts\pyinstaller .\docker-compose.spec
|
|
.\venv\Scripts\pyinstaller .\docker-compose.spec
|
|
|
$ErrorActionPreference = "Stop"
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
|
|
|
|
-Move-Item -Force .\dist\docker-compose .\dist\docker-compose-Windows-x86_64.exe
|
|
|
|
|
|
|
+Move-Item -Force .\dist\docker-compose.exe .\dist\docker-compose-Windows-x86_64.exe
|
|
|
.\dist\docker-compose-Windows-x86_64.exe --version
|
|
.\dist\docker-compose-Windows-x86_64.exe --version
|