-
-
Notifications
You must be signed in to change notification settings - Fork 9
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 #209 from ulixee/desktop
Platform gets isolated
- Loading branch information
Showing
309 changed files
with
1,796 additions
and
25,647 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.json linguist-language=JSON-with-Comments |
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 |
---|---|---|
|
@@ -25,28 +25,8 @@ jobs: | |
node-version: 18 | ||
cache: yarn | ||
|
||
- name: Setup SSH for Git Operations | ||
run: | | ||
if [[ "$RUNNER_OS" == "Windows" ]]; then | ||
SSH_PATH="$HOME/.ssh" | ||
mkdir "$SSH_PATH" | ||
echo "$SSH_PRIVATE_KEY" > "$SSH_PATH/id_rsa" | ||
chmod 600 "$SSH_PATH/id_rsa" | ||
ssh-keyscan github.com >> "$SSH_PATH/known_hosts" | ||
else | ||
SSH_PATH=~/.ssh | ||
mkdir -p "$SSH_PATH" | ||
echo "$SSH_PRIVATE_KEY" > "$SSH_PATH/id_rsa" | ||
chmod 600 "$SSH_PATH/id_rsa" | ||
ssh-keyscan github.com >> "$SSH_PATH/known_hosts" | ||
fi | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.MAINCHAIN_SSH_KEY }} | ||
|
||
- name: Clone Mainchain | ||
run: | | ||
export GIT_SSH_COMMAND="ssh -i $SSH_PATH/id_rsa -o UserKnownHostsFile=$SSH_PATH/known_hosts" | ||
git clone -b napi-bindings [email protected]:argonprotocol/mainchain.git | ||
run: git clone -b napi-bindings https://github.com/argonprotocol/mainchain.git | ||
working-directory: .. | ||
|
||
- name: Install Mainchain | ||
|
@@ -57,15 +37,22 @@ jobs: | |
run: yarn tsc | ||
working-directory: ../mainchain/client/nodejs | ||
|
||
- name: Clone Hero | ||
run: | | ||
git clone -n https://github.com/ulixee/hero.git | ||
cd hero | ||
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main) | ||
working-directory: .. | ||
|
||
- name: Install Hero | ||
run: yarn build:simple | ||
working-directory: ./hero | ||
working-directory: ../hero | ||
|
||
- name: Set timeout | ||
run: yarn config set network-timeout 1000000 -g | ||
|
||
- name: Build modules | ||
run: yarn && yarn build:dist | ||
run: yarn install --frozen-lockfile --ignore-engines && yarn build:dist | ||
|
||
- name: Publish branch | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -57,25 +57,14 @@ jobs: | |
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.23' | ||
|
||
- name: Install pcap | ||
run: sudo apt-get install -y libpcap-dev | ||
|
||
- name: Setup SSH for Git Operations | ||
shell: bash | ||
run: | | ||
mkdir -p "$SSH_PATH" | ||
echo "$SSH_PRIVATE_KEY" > "$SSH_PATH/id_rsa" | ||
chmod 600 "$SSH_PATH/id_rsa" | ||
ssh-keyscan github.com >> "$SSH_PATH/known_hosts" | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.MAINCHAIN_SSH_KEY }} | ||
|
||
- name: Clone Mainchain | ||
run: | | ||
export GIT_SSH_COMMAND="ssh -i $SSH_PATH/id_rsa -o UserKnownHostsFile=$SSH_PATH/known_hosts" | ||
git clone --depth 1 -b napi-bindings [email protected]:argonprotocol/mainchain.git | ||
git clone --depth 1 -b napi-bindings https://github.com/argonprotocol/mainchain.git | ||
cp mainchain/localchain/npm/**/*.node mainchain/localchain | ||
working-directory: .. | ||
|
||
|
@@ -87,12 +76,23 @@ jobs: | |
run: yarn tsc | ||
working-directory: ../mainchain/client/nodejs | ||
|
||
- name: Clone Hero | ||
run: | | ||
git clone -n --recurse-submodules https://github.com/ulixee/hero.git | ||
cd hero | ||
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main) | ||
git submodule update --init --recursive --depth 1 | ||
working-directory: .. | ||
|
||
- name: Install Hero | ||
run: yarn build:simple | ||
working-directory: ./hero | ||
run: yarn build | ||
working-directory: ../hero | ||
|
||
- name: Set yarn config | ||
run: yarn config set ignore-engines true && yarn config set frozen-lockfile true | ||
|
||
- name: Yarn build | ||
run: yarn --ignore-engines && yarn build --ignore-engines | ||
run: yarn build | ||
env: | ||
ELECTRON_SKIP_BINARY_DOWNLOAD: 1 | ||
|
||
|
@@ -150,7 +150,12 @@ jobs: | |
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
go-version: '1.23' | ||
|
||
- uses: actions/setup-python@v5 | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Chocolatey Install Action | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
|
@@ -162,31 +167,20 @@ jobs: | |
if: ${{ matrix.os == 'windows-latest' }} | ||
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Setup SSH for Git Operations | ||
shell: bash | ||
- name: Clear space | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: | | ||
if [[ "$RUNNER_OS" == "Windows" ]]; then | ||
SSH_PATH="$HOME/.ssh" | ||
mkdir "$SSH_PATH" | ||
echo "$SSH_PRIVATE_KEY" > "$SSH_PATH/id_rsa" | ||
chmod 600 "$SSH_PATH/id_rsa" | ||
ssh-keyscan github.com >> "$SSH_PATH/known_hosts" | ||
echo "GIT_SSH_COMMAND=ssh -i $SSH_PATH/id_rsa -o UserKnownHostsFile=$SSH_PATH/known_hosts" >> $GITHUB_ENV | ||
else | ||
SSH_PATH=~/.ssh | ||
mkdir -p "$SSH_PATH" | ||
echo "$SSH_PRIVATE_KEY" > "$SSH_PATH/id_rsa" | ||
chmod 600 "$SSH_PATH/id_rsa" | ||
ssh-keyscan github.com >> "$SSH_PATH/known_hosts" | ||
echo "GIT_SSH_COMMAND=ssh -i $SSH_PATH/id_rsa -o UserKnownHostsFile=$SSH_PATH/known_hosts" >> $GITHUB_ENV | ||
fi | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.MAINCHAIN_SSH_KEY }} | ||
sudo rm -rf /Users/runner/Library/Android/sdk | ||
sudo rm -rf /Users/runner/hostedtoolcache/CodeQL | ||
sudo rm -rf /Users/runner/Library/Developer/CoreSimulator | ||
sudo rm -rf /Users/runner/Library/Developer/Xcode/DerivedData | ||
sudo rm -rf /Users/runner/Library/Developer/Xcode/iOS DeviceSupport | ||
sudo rm -rf /Users/runner/Library/Developer/Xcode/watchOS DeviceSupport | ||
- name: Clone Mainchain | ||
shell: bash | ||
run: | | ||
git clone -b napi-bindings git@github.com:argonprotocol/mainchain.git | ||
git clone -b napi-bindings https://github.com/argonprotocol/mainchain.git | ||
cp mainchain/localchain/npm/**/*.node mainchain/localchain | ||
working-directory: .. | ||
|
||
|
@@ -198,14 +192,27 @@ jobs: | |
run: yarn tsc | ||
working-directory: ../mainchain/client/nodejs | ||
|
||
- name: Clone Hero | ||
run: | | ||
git clone -n --recurse-submodules https://github.com/ulixee/hero.git | ||
cd hero | ||
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main) | ||
git submodule update --init --recursive --depth 1 | ||
working-directory: .. | ||
|
||
- name: Install Hero | ||
run: yarn build:simple | ||
working-directory: ./hero | ||
run: yarn build | ||
working-directory: ../hero | ||
|
||
- name: Install Deps | ||
run: yarn config set ignore-engines true | ||
|
||
- name: Yarn build | ||
run: yarn --ignore-engines && yarn build --ignore-engines | ||
run: yarn build | ||
env: | ||
ELECTRON_SKIP_BINARY_DOWNLOAD: 1 | ||
ULX_MITM_REBUILD_SOCKET: 0 | ||
NODE_OPTIONS: --max_old_space_size=4096 | ||
|
||
- name: Redo mainchain deps | ||
run: yarn | ||
|
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 |
---|---|---|
@@ -1,4 +0,0 @@ | ||
[submodule "hero"] | ||
path = hero | ||
url = [email protected]:ulixee/hero.git | ||
branch = main | ||
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,5 @@ | ||
# Payment Services | ||
> Ulixee Datastores come built-in supporting a simple payment mechanism using the Argon currency. Payment services allow you to delegate that function to someone else. | ||
## Interface | ||
|
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
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
Oops, something went wrong.