forked from ryo-currency/ryo-wallet-libre
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from loki-project/development
v.1.4.6 Bug fixes and service node min/max
- Loading branch information
Showing
33 changed files
with
1,998 additions
and
881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Loki Electron Wallet Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, macos-latest, ubuntu-latest] | ||
steps: | ||
- name: Checkout git repo | ||
uses: actions/checkout@v1 | ||
|
||
# Read node version from `.nvmrc` file | ||
- name: Read nvm rc | ||
id: nvmrc | ||
uses: browniebroke/read-nvmrc-action@v1 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ steps.nvmrc.outputs.node_version }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Download lokid binaries | ||
run: ./download-asset.sh | ||
env: | ||
OS: ${{ runner.os }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
shell: bash | ||
working-directory: ./downloads | ||
|
||
- name: Extract zip binaries | ||
if: runner.os != 'Linux' | ||
run: unzip latest.zip | ||
shell: bash | ||
working-directory: ./downloads | ||
|
||
- name: Extract xz binaries | ||
if: runner.os == 'Linux' | ||
run: tar -xf latest.xz | ||
shell: bash | ||
working-directory: ./downloads | ||
|
||
- name: Move lokid binaries | ||
run: | | ||
find ./downloads -type f -name "lokid*" -exec cp '{}' ./bin \; | ||
find ./downloads -type f -name "loki-wallet-rpc*" -exec cp '{}' ./bin \; | ||
shell: bash | ||
|
||
- name: Verify binaries | ||
run: ls ./bin | ||
shell: bash | ||
|
||
- name: Publish window and linux binaries | ||
if: runner.os != 'macOS' | ||
run: npm run release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish mac binaries | ||
if: runner.os == 'macOS' | ||
run: npm run release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CSC_LINK: ${{ secrets.MAC_CERTIFICATE }} | ||
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }} | ||
SIGNING_APPLE_ID: ${{ secrets.SIGNING_APPLE_ID }} | ||
SIGNING_APP_PASSWORD: ${{ secrets.SIGNING_APP_PASSWORD }} | ||
SIGNING_TEAM_ID: ${{ secrets.SIGNING_TEAM_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ bin/* | |
|
||
.env | ||
|
||
/downloads | ||
downloads/* | ||
!downloads/*.sh | ||
|
||
dev-app-update.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
11.9.0 | ||
14.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
// Must be included inside .stylintrc, otherwise will conflict and cause weird | ||
// linting errors | ||
module.exports = { | ||
printWidth: 120 | ||
}; | ||
// intentionally blank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,4 @@ | |
"valid": true, | ||
"zeroUnits": "never", | ||
"zIndexNormalize": false, | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
# Source from: https://github.com/houqp/download-release-assets-action | ||
|
||
set -e | ||
|
||
if [ -z "$OS" ]; then | ||
echo "OS must be set" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$RENAME" ]; then | ||
RENAME="latest" | ||
fi | ||
|
||
REPO="loki-project/loki-core" | ||
RELEASE="latest" | ||
|
||
if [ "$OS" == "Linux" ]; then | ||
FILE_NAME_REGEX="linux" | ||
elif [ "$OS" == "Windows" ]; then | ||
FILE_NAME_REGEX="win" | ||
elif [ "$OS" == "macOS" ]; then | ||
FILE_NAME_REGEX="osx" | ||
else | ||
echo "OS must be Linux, Windows or macOS" | ||
exit 1 | ||
fi | ||
|
||
|
||
ASSET_URL=$(curl -sL --fail \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-H "Authorization: Bearer ${GITHUB_TOKEN}" \ | ||
"https://api.github.com/repos/${REPO}/releases/${RELEASE}" \ | ||
| jq -r ".assets | .[] | select(.name | test(\"${FILE_NAME_REGEX}\")) | .url") | ||
|
||
curl -sL --fail \ | ||
-H "Accept: application/octet-stream" \ | ||
-H "Authorization: Bearer ${GITHUB_TOKEN}" \ | ||
-o "${RENAME}" \ | ||
"$ASSET_URL" |
Oops, something went wrong.