Skip to content

Commit

Permalink
更新 CI 工作流,移除不使用的 Web 资源
Browse files Browse the repository at this point in the history
  • Loading branch information
ParticleG committed Jan 4, 2025
1 parent 746d758 commit cf7f1da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 227 deletions.
112 changes: 0 additions & 112 deletions .github/build/web/dev/index.html

This file was deleted.

112 changes: 0 additions & 112 deletions .github/build/web/release/index.html

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,17 @@ jobs:
run: |
mv ${{ env.BUILD_ASSETS_FOLDER }}/web/${{ env.BUILD_TYPE }}/* ${{ env.OUTPUT_FOLDER }}
- name: Initialize Love.js Api Player
env:
LOVEJS_API_PLAYER_BASE_URL: https://raw.githubusercontent.com/MrcSnm/Love.js-Api-Player/refs/heads/master
run: |
pushd ${{ env.OUTPUT_FOLDER }}
wget https://raw.githubusercontent.com/MrcSnm/Love.js-Api-Player/refs/heads/master/consolewrapper.js
wget https://raw.githubusercontent.com/MrcSnm/Love.js-Api-Player/refs/heads/master/globalizeFS.js
wget https://raw.githubusercontent.com/MrcSnm/Love.js-Api-Player/refs/heads/master/webdb.js
sed -i 's|</head>| <link rel="icon" type="image/x-icon" href="favicon.ico">\n </head>|' index.html
sed -i 's|</head>| <script src="consolewrapper.js"></script>\n </head>|' index.html
sed -i 's|</head>| <script src="webdb.js"></script>\n </head>|' index.html
sed -i 's|32, 37, 38, 39, 40|37, 38, 39, 40|' index.html
wget ${{ env.LOVEJS_API_PLAYER_BASE_URL }}/consolewrapper.js
wget ${{ env.LOVEJS_API_PLAYER_BASE_URL }}/globalizeFS.js
wget ${{ env.LOVEJS_API_PLAYER_BASE_URL }}/webdb.js
node globalizeFS.js
rm globalizeFS.js
popd
Expand Down

0 comments on commit cf7f1da

Please sign in to comment.