30 lines
No EOL
961 B
PowerShell
30 lines
No EOL
961 B
PowerShell
$env:Path += ";C:\MinGW\bin\"
|
|
|
|
$env:Path += ";C:\Program Files (x86)\Windows Kits\10\bin\x86\"
|
|
gcc --version
|
|
mingw32-make --version
|
|
|
|
mkdir temp
|
|
mv miniupnpc-1.9.tar.gz temp\miniupnpc-1.9.tar.gz
|
|
cd temp
|
|
tar zxf miniupnpc-1.9.tar.gz
|
|
cd miniupnpc-1.9
|
|
mingw32-make.exe -f Makefile.mingw
|
|
python.exe setupmingw32.py build --compiler=mingw32
|
|
python.exe setupmingw32.py install
|
|
|
|
cd ..\..\
|
|
Remove-Item -Recurse -Force temp
|
|
|
|
# copy requirements from lbry, but remove lbryum (we'll add it back in below) and gmpy and miniupnpc (installed manually)
|
|
Get-Content ..\lbry\requirements.txt | Select-String -Pattern 'lbryum|gmpy|miniupnpc' -NotMatch | Out-File requirements.txt
|
|
# for electron, we install lbryum and lbry using submodules
|
|
Add-Content requirements.txt "`n../lbryum"
|
|
Add-Content requirements.txt "`n../lbry"
|
|
Get-Content requirements.txt
|
|
|
|
pip.exe install pyinstaller
|
|
pip.exe install -r windows.txt
|
|
|
|
pyinstaller -y daemon.onefile.spec
|
|
pyinstaller -y cli.onefile.spec |