drop the wheels, a readme and an install script

This commit is contained in:
Don Kackman
2020-04-21 22:55:20 -07:00
committed by Richard Kiss
parent a78849ef50
commit b978973c9d
6 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
*
!.gitignore
!readme.md
!readme.*
!install.ps1
+3 -3
View File
@@ -1,9 +1,9 @@
Remove-Item "./venv" -Recurse -Force -ErrorAction Ignore
Start-Process "$env:HOMEDRIVE$env:HOMEPATH\AppData\Local\Programs\Python\Python37\python.exe" -ArgumentList "-m venv venv" -Wait
if ($LastExitCode) { exit $LastExitCode }
. .\venv\Scripts\activate.ps1
pip3 install --upgrade pip
pip install -i https://download.chia.net/simple/ miniupnpc==2.1 setproctitle==1.1.10 cbor2==5.1.0
pip install -e .
.\wheels.ps1
+2
View File
@@ -0,0 +1,2 @@
To complete the install, open powershell, and navigate to `~\AppData\Local\Programs\Chia Network\Chia Blockchain\`
Execute the `install.ps1` located in that folder.
+9
View File
@@ -21,6 +21,15 @@ Copy-Item ".\blockchain\install.ps1" "$blockchainDir" -Force
Copy-Item ".\blockchain\readme.txt" "$blockchainDir" -Force
Copy-Item ".\blockchain\*.whl" "$blockchainDir\wheels" -Force
# generate the script that will isntall all the wheels on the target machine
$text = ""
Get-ChildItem "$blockchainDir\wheels" -Filter *.whl |
Foreach-Object {
$text += "pip install .\wheels\$_`n"
}
New-Item "$blockchainDir\wheels.ps1" -Force
Set-Content "$blockchainDir\wheels.ps1" $text
# this generates package-files.wxs from the contents of the electron packager folder
Write-Host "Creating manifest of python environment files"
heat dir $blockchainDir -cg ChiaBlockchainFiles -nologo -gg -scom -sreg -sfrag -srd -dr INSTALLDIR -out "$buildDir\$tempName.wxs"
+1 -1
View File
@@ -1,7 +1,7 @@
# shared variables
$env:walletProductName = "chia-wallet"
$env:blockchainProductName = "chia-blockchain"
$env:version = "0.1.5" # all packages share the same version
$env:version = "0.1.6" # all packages share the same version
$env:resourceDir = ".\resources" # bitmaps, icons etc
$env:prereqDir = ".\prerequisites" # location for any pre-req installers
+5 -1
View File
@@ -30,8 +30,12 @@
<PackageGroupRef Id="MSVC2019Package" />
<RollbackBoundary />
<PackageGroupRef Id="BlockchainPackage" />
<PackageGroupRef Id="WalletPackage" />
<PackageGroupRef Id="BlockchainPackage" />
</Chain>
</Bundle>
</Wix>
<!-- LaunchArguments="[#readme.txt]"
LaunchTarget="notepad.exe"
LaunchWorkingFolder="[INSTALLDIR]" -->