lbry-sdk/build/build.ps1

35 lines
1.1 KiB
PowerShell
Raw Normal View History

2017-04-10 21:10:52 +02: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
tar zxf miniupnpc-1.9.tar.gz
cd miniupnpc-1.9
2017-04-11 03:42:33 +02:00
mingw32-make -f Makefile.mingw
python setupmingw32.py build --compiler=mingw32
python setupmingw32.py install
2017-04-10 21:10:52 +02:00
cd ..\
Remove-Item -Recurse -Force miniupnpc-1.9
# copy requirements from lbry, but remove gmpy and miniupnpc (installed manually)
Get-Content ..\requirements.txt | Select-String -Pattern 'gmpy|miniupnpc' -NotMatch | Out-File requirements_base.txt
# add in gmpy wheel
Add-Content requirements.txt "./gmpy-1.17-cp27-none-win32.whl"
2017-05-22 22:30:50 +02:00
python set_build.py
2017-04-11 03:42:33 +02:00
pip install -r requirements.txt
2017-04-25 18:07:36 +02:00
pip install ..\.
2017-04-11 03:42:33 +02:00
2017-04-10 21:10:52 +02:00
pyinstaller -y daemon.onefile.spec
2017-04-11 03:42:33 +02:00
pyinstaller -y cli.onefile.spec
2017-04-25 18:07:36 +02:00
nuget install secure-file -ExcludeVersion
secure-file\tools\secure-file -decrypt .\lbry2.pfx.enc -secret "$env:pfx_key"
signtool.exe sign /f .\lbry2.pfx /p "$env:key_pass" /tr http://tsa.starfieldtech.com /td SHA256 /fd SHA256 dist\*.exe
2017-04-11 03:42:33 +02:00
python zip_daemon.py
2017-05-24 20:41:15 +02:00
python upload_assets.py