-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e0c8b6
commit dfc8b3f
Showing
4 changed files
with
85 additions
and
46 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,21 @@ | ||
name: 'Build for Ubuntu' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: install dependencies (ubuntu only) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | ||
shell: bash | ||
|
||
- name: build tauri app | ||
uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload binary as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: algokit-explorer-linux-${{ runner.arch }} | ||
path: | | ||
src-tauri/target/release/algokit-explorer |
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,55 @@ | ||
#!/bin/bash | ||
|
||
# Ensure the script fails on errors | ||
set -e | ||
|
||
# Check if the correct number of arguments are passed | ||
if [ "$#" -ne 4 ]; then | ||
echo "Usage: $0 <destination_directory> <release_tag> <artifact_path> <grade>" | ||
exit 1 | ||
fi | ||
|
||
# Assign arguments to variables | ||
DESTINATION_DIR="$1" | ||
RELEASE_TAG="$2" | ||
GRADE="$3" | ||
|
||
# Ensure the destination directory exists | ||
mkdir -p "${DESTINATION_DIR}/snap" | ||
|
||
# Extract version from RELEASE_TAG, assuming it's in the format "vX.Y.Z" | ||
VERSION="${RELEASE_TAG#v}" | ||
|
||
# Create the snapcraft.yaml file | ||
cat > "${DESTINATION_DIR}/snap/snapcraft.yaml" <<EOF | ||
name: algokit-explorer | ||
base: core22 | ||
version: "$VERSION" | ||
summary: Short description of algokit-explorer. | ||
description: | | ||
Detailed description of algokit-explorer. | ||
confinement: classic | ||
grade: $GRADE | ||
parts: | ||
algokit-explorer: | ||
source: snap-dist | ||
plugin: dump | ||
build-packages: | ||
- build-essential | ||
stage-packages: | ||
- libgtk-3-0 | ||
- libwebkit2gtk-4.0-37 | ||
apps: | ||
algokit-explorer: | ||
command: algokit-explorer | ||
plugs: | ||
- desktop-legacy | ||
- home | ||
- x11 | ||
- wayland | ||
EOF | ||
|
||
echo "snapcraft.yaml has been created at ${DESTINATION_DIR}/snap/snapcraft.yaml" |
This file was deleted.
Oops, something went wrong.