Skip to content

Commit

Permalink
Rename Nethermind Launcher executable
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo committed Jul 8, 2023
1 parent 0654afa commit c957d4a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-nethermind-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
scripts/deployment/build-runner.sh $GITHUB_SHA $build_timestamp
- name: Build Nethermind.Cli
run: nethermind/scripts/deployment/build-cli.sh $GITHUB_SHA ${{ steps.build-runner.outputs.build-timestamp }}
- name: Build Nethermind.Launcher
- name: Build Nethermind launcher
run: nethermind/scripts/deployment/build-launcher.sh
- name: Build Nethermind.Launcher for Linux arm64
- name: Build Nethermind launcher for Linux arm64
run: |
cd nethermind
docker buildx build --platform=linux/arm64 -t tmp-launcher -f Dockerfile.launcher . --load
docker run --platform=linux/arm64 -v $PWD:/opt/mount --rm tmp-launcher bash -c "cp /nethermind/Nethermind.Launcher /opt/mount/"
mv Nethermind.Launcher $GITHUB_WORKSPACE/$PUB_DIR/linux-arm64/Nethermind.Launcher
docker run --platform=linux/arm64 -v $PWD:/opt/mount --rm tmp-launcher bash -c "cp /nethermind/nethermind-launcher /opt/mount/"
mv nethermind-launcher $GITHUB_WORKSPACE/$PUB_DIR/linux-arm64/nethermind-launcher
- name: Archive packages
env:
PACKAGE_PREFIX: nethermind-preview-${{ steps.build-runner.outputs.commit-hash }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ jobs:
$SCRIPTS_PATH/build-runner.sh $GITHUB_SHA $build_timestamp
- name: Build Nethermind.Cli
run: $SCRIPTS_PATH/build-cli.sh $GITHUB_SHA ${{ steps.build-runner.outputs.build-timestamp }}
- name: Build Nethermind.Launcher
- name: Build Nethermind launcher
run: $SCRIPTS_PATH/build-launcher.sh
- name: Build Nethermind.Launcher for Linux arm64
- name: Build Nethermind launcher for Linux arm64
working-directory: nethermind
run: |
docker buildx build --platform=linux/arm64 -t tmp-launcher -f Dockerfile.launcher . --load
docker run --platform=linux/arm64 -v $PWD:/opt/mount --rm tmp-launcher bash -c "cp /nethermind/Nethermind.Launcher /opt/mount/"
mv Nethermind.Launcher $GITHUB_WORKSPACE/$PUB_DIR/linux-arm64/Nethermind.Launcher
docker run --platform=linux/arm64 -v $PWD:/opt/mount --rm tmp-launcher bash -c "cp /nethermind/nethermind-launcher /opt/mount/"
mv nethermind-launcher $GITHUB_WORKSPACE/$PUB_DIR/linux-arm64/nethermind-launcher
- name: Archive packages
id: archive
env:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.launcher
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ RUN npm i pkg @vercel/ncc -g && \
git clone https://github.com/NethermindEth/nethermind.launcher.git && \
cd nethermind.launcher && \
npm install && \
pkg index.js -t latest-linux-arm64 -o Nethermind.Launcher
pkg index.js -t latest-linux-arm64 -o nethermind-launcher


FROM arm64v8/node AS launcher
WORKDIR /nethermind
COPY --from=build /source/nethermind.launcher/Nethermind.Launcher .
COPY --from=build /source/nethermind.launcher/nethermind-launcher .
2 changes: 1 addition & 1 deletion scripts/deployment/build-launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

set -e

app_name=Nethermind.Launcher
app_name=nethermind-launcher
output_path=$GITHUB_WORKSPACE/$PUB_DIR

echo "Building Nethermind Launcher"
Expand Down
2 changes: 1 addition & 1 deletion scripts/execution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ then
else
echo 'Executing Nethermind Launcher'
cd /usr/share/nethermind
sudo /usr/share/nethermind/Nethermind.Launcher
sudo /usr/share/nethermind/nethermind-launcher
fi

0 comments on commit c957d4a

Please sign in to comment.