Skip to content

Commit

Permalink
Bad
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed Dec 17, 2024
1 parent 10bf057 commit 6461830
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .ci/package-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ set -e
# Modify the package with the solution from https://stackoverflow.com/a/11299907
# First, download the package and extract it
wget https://github.com/rime/squirrel/releases/download/${SQUIRREL_VERSION}/Squirrel-${SQUIRREL_VERSION}.pkg
pushd package
xar -xf ../Squirrel-${SQUIRREL_VERSION}.pkg

# Extract the application
mkdir package
pushd package
xar -xf ../Squirrel-${SQUIRREL_VERSION}.pkg
cat Payload | gunzip -dc | cpio -i
pushd Squirrel.app/Contents

# Remove all default rime schemas but keep opencc data and app config
# Then, download the latest schemas we need and amend the `default.yaml`
pushd Squirrel.app/Contents
GLOBIGNORE=SharedSupport/squirrel.yaml
rm SharedSupport/*.*
cp -rf "$SCHEMA_DIR/"* SharedSupport
Expand Down

0 comments on commit 6461830

Please sign in to comment.