-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.ps1
16 lines (16 loc) · 1.04 KB
/
package.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
py -m pip install --upgrade pip
# & cmd /c "py -m pip install -r requirements.txt 1>&2" 2>&1 | ForEach-Object{ "$_" } | Tee-Object where_installed.txt
# $pyinstaller_loc = Select-String -Path where_installed.txt -Pattern "are installed in '(.+)'" -AllMatches | ForEach-Object {$_.Matches[0].Groups[1].Value}
# $pyinstaller_loc = $pyinstaller_loc + "\pyinstaller.exe"
# Invoke-Expression "$pyinstaller_loc --clean --onefile --noupx sa1hybridizer.py"
py -m pip install -r requirements.txt
C:\hostedtoolcache\windows\Python\3.9.6\x64\Scripts\pyinstaller.exe --clean --onefile --noupx sa1hybridizer.py
Copy-Item conv_defines.asm dist\conv_defines.asm
Copy-Item convert_main.py dist\convert_main.py
Copy-Item converter.py dist\converter.py
Copy-Item sa1hybridizer.py dist\sa1hybridizer.py
Set-Location dist
Compress-Archive -Path convert_main.py,converter.py,sa1hybridizer.py -DestinationPath src.zip
Compress-Archive -Path sa1hybridizer.exe,src.zip,conv_defines.asm -DestinationPath SA1Hybridizer.zip
Set-Location ..
Move-Item dist\SA1Hybridizer.zip SA1Hybridizer.zip