mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-24 07:25:03 -05:00
drop the wheels, a readme and an install script
This commit is contained in:
committed by
Richard Kiss
parent
a78849ef50
commit
b978973c9d
@@ -1,4 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!readme.md
|
||||
!readme.*
|
||||
!install.ps1
|
||||
@@ -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
|
||||
@@ -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.
|
||||
@@ -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,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
|
||||
|
||||
|
||||
@@ -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]" -->
|
||||
|
||||
Reference in New Issue
Block a user