mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-15 16:12:16 +00:00
add windows prebuild script and update docs iaw
This commit is contained in:
parent
95656ff7aa
commit
1b26d7fc9c
2 changed files with 39 additions and 8 deletions
|
@ -77,14 +77,6 @@ git submodule update --init --recursive
|
|||
|
||||
```
|
||||
|
||||
Run prebuild script
|
||||
```
|
||||
cd scripts
|
||||
./prebuild.sh
|
||||
// when finished go back to the root directory
|
||||
cd ..
|
||||
```
|
||||
|
||||
Remove pre-installed system libraries for the following packages built by cryptography plugins in the crypto_plugins folder: `boost iconv libjson-dev libsecret openssl sodium unbound zmq`. You can use
|
||||
```
|
||||
sudo apt list --installed | grep boost
|
||||
|
@ -95,6 +87,17 @@ sudo apt-get remove '^libboost.*-dev.*'
|
|||
```
|
||||
<!-- TODO: configure compiler to prefer built over system libraries. Should already use them? -->
|
||||
|
||||
### Run prebuild script
|
||||
|
||||
Certain test wallet parameter and API key template files must be created in order to run Stack Wallet. These can be created by script as in
|
||||
```
|
||||
cd scripts
|
||||
./prebuild.sh
|
||||
// when finished go back to the root directory
|
||||
cd ..
|
||||
```
|
||||
or manually by creating the files referenced in that script with the specified content.
|
||||
|
||||
### Building plugins for Android
|
||||
> Warning: This will take a long time, please be patient
|
||||
```
|
||||
|
@ -161,6 +164,17 @@ winget install Microsoft.Windows.CppWinRT -Version 2.0.210806.1
|
|||
```
|
||||
or [download the package](https://www.nuget.org/packages/Microsoft.Windows.CppWinRT/2.0.210806.1) and [manually install it](https://github.com/Baseflow/flutter-permission-handler/issues/1025#issuecomment-1518576722).
|
||||
|
||||
### Run prebuild script
|
||||
|
||||
Certain test wallet parameter and API key template files must be created in order to run Stack Wallet. These can be created by script as in
|
||||
```
|
||||
cd scripts
|
||||
./prebuild.ps1
|
||||
// when finished go back to the root directory
|
||||
cd ..
|
||||
```
|
||||
or manually by creating the files referenced in that script with the specified content.
|
||||
|
||||
### Running
|
||||
|
||||
Run the following commands:
|
||||
|
|
17
scripts/prebuild.ps1
Normal file
17
scripts/prebuild.ps1
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Create template lib/external_api_keys.dart file if it doesn't already exist
|
||||
$KEYS = "..\lib\external_api_keys.dart"
|
||||
if (-not (Test-Path $KEYS)) {
|
||||
Write-Host "prebuild.ps1: creating template lib/external_api_keys.dart file"
|
||||
"const kChangeNowApiKey = "";" + "`nconst kSimpleSwapApiKey = "";" | Out-File $KEYS
|
||||
}
|
||||
|
||||
# Create template wallet test parameter files if they don't already exist
|
||||
$coins = @("bitcoin", "bitcoincash", "dogecoin", "namecoin", "firo", "particl") # TODO add monero and wownero when those tests are updated to use the .gitignored test wallet setup: when doing that, make sure to update the test vectors for a new, private development seed
|
||||
|
||||
foreach ($coin in $coins) {
|
||||
$WALLETTESTPARAMFILE = "..\test\services\coins\$coin\${coin}_wallet_test_parameters.dart"
|
||||
if (-not (Test-Path $WALLETTESTPARAMFILE)) {
|
||||
Write-Host "prebuild.ps1: creating template test/services/coins/$coin/${coin}_wallet_test_parameters.dart file"
|
||||
"const TEST_MNEMONIC = "";" + "`nconst ROOT_WIF = "";" + "`nconst NODE_WIF_84 = "";" | Out-File -FilePath $WALLETTESTPARAMFILE
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue