mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 17:55:11 +00:00
29 lines
No EOL
999 B
PowerShell
29 lines
No EOL
999 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
|
|
Invoke-WebRequest "https://pypi.python.org/packages/55/90/e987e28ed29b571f315afea7d317b6bf4a551e37386b344190cffec60e72/miniupnpc-1.9.tar.gz" -OutFile "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)
|
|
Get-Content ..\lbry\requirements.txt | Where-Object {$_ -notmatch 'lbryum'} | Set-Content requirements.txt
|
|
# for electron, we install lbryum and lbry using submodules
|
|
Add-Content requirements.txt "`n../lbryum"
|
|
Add-Content requirements.txt "`n../lbry"
|
|
|
|
pip.exe install pyinstaller
|
|
pip.exe install -r windows.txt
|
|
|
|
pyinstaller -y daemon.onefile.spec
|
|
pyinstaller -y cli.onefile.spec |