Skip to content

Commit

Permalink
Add resources.tar to release file
Browse files Browse the repository at this point in the history
  • Loading branch information
yanorei32 committed Apr 23, 2024
1 parent e40af91 commit 0f38633
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ jobs:
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: "target/*"
files: |
target/*
resources.tar
- name: tagged-release
uses: "marvinpinto/action-automatic-releases@latest"
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: "target/*"
files: |
target/*
resources.tar
11 changes: 10 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shopt -s extglob

# --------------------------------

depends=( curl resvg )
depends=( curl resvg tar )
notfound=()

for app in "${depends[@]}"; do
Expand Down Expand Up @@ -137,3 +137,12 @@ for d in "${simple_dirs[@]}"; do
"$TARGET/${filename%.*}.png"
done
done

# --------------------------------

RESOURCES="./resources"

cp -r "$TARGET" "$RESOURCES"
rm -f "$RESOURCES.tar"
tar -cvf "$RESOURCES.tar" "$RESOURCES"
rm -r "$RESOURCES"
Binary file added resources.tar
Binary file not shown.

0 comments on commit 0f38633

Please sign in to comment.