Skip to content

Commit

Permalink
更新与编译文件
Browse files Browse the repository at this point in the history
  • Loading branch information
PJ-568 committed Feb 11, 2024
1 parent 68b1d67 commit 13270ac
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,35 @@ jobs:
repository: "atelier-anchor/smiley-sans"
latest: true
fileName: "*.zip"
out-file-path: "Build"
extract: true
# out-file-path: "Build"
# extract: true

- name: Check workspace
run: |
ls $GITHUB_WORKSPACE/Build
- name: Make font
run: |
mkdir $GITHUB_WORKSPACE/Build/x1
mkdir $GITHUB_WORKSPACE/Build/x2
grub-mkfont -o $GITHUB_WORKSPACE/Build/x1/SmileySans-Oblique_32.pf2 -s 32 -v $GITHUB_WORKSPACE/Build/SmileySans-Oblique.ttf
grub-mkfont -o $GITHUB_WORKSPACE/Build/x1/SmileySans-Oblique_48.pf2 -s 48 -v $GITHUB_WORKSPACE/Build/SmileySans-Oblique.ttf
grub-mkfont -o $GITHUB_WORKSPACE/Build/x2/SmileySans-Oblique_64.pf2 -s 64 -v $GITHUB_WORKSPACE/Build/SmileySans-Oblique.ttf
grub-mkfont -o $GITHUB_WORKSPACE/Build/x2/SmileySans-Oblique_96.pf2 -s 96 -v $GITHUB_WORKSPACE/Build/SmileySans-Oblique.ttf
find . -type d -name "568flat*" ! -name "568flat_x*" -exec bash -c 'cp -v -u -r "$GITHUB_WORKSPACE/Build/x1/*" "{}/"' \;
find . -type d -name "568flat_x2*" -exec bash -c 'cp -v -u -r "$GITHUB_WORKSPACE/Build/x2/*" "{}/"' \;
mkdir ./Build/
mkdir ./Build/x1/
mkdir ./Build/x2/
unzip -o ${{ fromJson(steps.get-release.outputs.downloaded_files)[0] }} -d ./Build
grub-mkfont -o ./Build/x1/SmileySans-Oblique_32.pf2 -s 32 -v ./Build/SmileySans-Oblique.ttf
grub-mkfont -o ./Build/x1/SmileySans-Oblique_48.pf2 -s 48 -v ./Build/SmileySans-Oblique.ttf
grub-mkfont -o ./Build/x2/SmileySans-Oblique_64.pf2 -s 64 -v ./Build/SmileySans-Oblique.ttf
grub-mkfont -o ./Build/x2/SmileySans-Oblique_96.pf2 -s 96 -v ./Build/SmileySans-Oblique.ttf
find ./Build/x1/ -type f -exec sh -c 'dir=$(dirname "$1"); if [[ $(basename "$dir") == 568flat && $(basename "$1") != 568flat_x* ]]; then cp "$1" ./"$dir"; fi' sh {} \;
find ./Build/x2/ -type f -exec sh -c 'dir=$(dirname "$1"); if [[ $(basename "$dir") == 568flat_x2 ]]; then cp "$1" ./"$dir"; fi' sh {} \;
# find . -type d -name "568flat*" ! -name "568flat_x*" -exec bash -c 'cp -v -u -r "./Build/x1/*" "{}/"' \;
# find . -type d -name "568flat_x2*" -exec bash -c 'cp -v -u -r "./Build/x2/*" "{}/"' \;
- name: Pack
run: |
mkdir Release
find . -type d -name "568flat*" -exec bash -c 'zip -r "./Release/$(basename {}).zip" "{}"' \;
- name: test-Check
run: |
ls Release
uses: actions/upload-artifact@v4
with:
name: test-Files
path: ./Release/*
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/Build/
/Release/
Binary file removed 568flat-en/SmileySans-Oblique_32.pf2
Binary file not shown.
Binary file removed 568flat-en/SmileySans-Oblique_48.pf2
Binary file not shown.
Binary file removed 568flat/SmileySans-Oblique_32.pf2
Binary file not shown.
Binary file removed 568flat/SmileySans-Oblique_48.pf2
Binary file not shown.
Binary file removed 568flat_x2-en/SmileySans-Oblique_64.pf2
Binary file not shown.
Binary file removed 568flat_x2-en/SmileySans-Oblique_96.pf2
Binary file not shown.
Binary file removed 568flat_x2/SmileySans-Oblique_64.pf2
Binary file not shown.
Binary file removed 568flat_x2/SmileySans-Oblique_96.pf2
Binary file not shown.

0 comments on commit 13270ac

Please sign in to comment.