lbry-desktop/daemon/build.ps1

28 lines
987 B
PowerShell
Raw Normal View History

2017-02-10 20:11:26 +01:00
$env:Path += ";C:\MinGW\bin\"
$env:Path += ";C:\Program Files (x86)\Windows Kits\10\bin\x86\"
gcc --version
mingw32-make --version
# build/install miniupnpc manually
2017-02-10 20:11:26 +01:00
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 miniupnpc-1.9
2017-02-10 20:11:26 +01:00
2017-04-07 00:38:18 +02:00
# copy requirements from lbry, but remove lbryum (we'll add it back in below) and gmpy and miniupnpc (installed manually)
2017-04-07 00:54:56 +02:00
Get-Content ..\lbry\requirements.txt | Select-String -Pattern 'lbryum|gmpy|miniupnpc' -NotMatch | Out-File requirements.txt
# add in gmpy wheel
Add-Content requirements.txt "./gmpy-1.17-cp27-none-win32.whl"
2017-04-07 00:16:24 +02:00
# for electron, we install lbryum and lbry using submodules
Add-Content requirements.txt "../lbryum"
Add-Content requirements.txt "../lbry"
2017-04-07 00:16:24 +02:00
2017-02-10 20:11:26 +01:00
pip.exe install pyinstaller
pip.exe install -r requirements.txt
2017-02-10 20:11:26 +01:00
2017-03-16 00:58:36 +01:00
pyinstaller -y daemon.onefile.spec
pyinstaller -y cli.onefile.spec