Skip to content

Commit

Permalink
Action: 修复未打包部分文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Hill-98 committed Oct 29, 2024
1 parent a8e4d03 commit 623b74e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@ jobs:
echo $(($(git log -1 --format=%ct) * 1000)) > .commit_time
- name: Use zip and unzip repack files
run: |
cd ..
cd "$GITHUB_WORKSPACE/.."
zip -9 -r -v "$RUNNER_TEMP/mpv-config".zip mpv-config
zip -d -v "$RUNNER_TEMP/mpv-config.zip" \*.git\* mpv-config/git-modules\*
unzip -d "$RUNNER_TEMP" "$RUNNER_TEMP/mpv-config.zip"
cd "$RUNNER_TEMP/mpv-config"
- name: Download and install uosc
run: |
curl --connect-timeout 3 --fail --location --output uosc.zip https://github.com/tomasklaen/uosc/releases/download/5.2.0/uosc.zip
cd "$RUNNER_TEMP/mpv-config"
curl --connect-timeout 3 --fail --location --output uosc.zip https://github.com/tomasklaen/uosc/releases/download/5.6.0/uosc.zip
rm -r fonts/uosc_icons.otf fonts/uosc_textures.ttf scripts/uosc
unzip uosc.zip
rm uosc.zip
- name: Create clean script
run: |
cd "$RUNNER_TEMP/mpv-config"
cat > clean.ps1 <<'EOF'
using namespace System.IO
function DeleteEmptyDirs([string]$Path) {
Expand Down

0 comments on commit 623b74e

Please sign in to comment.