Skip to content

Commit

Permalink
Update(CI): Mac installer script (#194)
Browse files Browse the repository at this point in the history
Fixes Mac package tool errors.
  • Loading branch information
tanxpyox authored Sep 19, 2024
1 parent a26eca4 commit b0d8cf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ci/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mkdir -p build/mac

# Download Mac installation script, Mac package and unzip
wget ${SQUIRREL_LINK}
7z e Squirrel*.zip -obuild/mac/
mv Squirrel*.Pkg ./build/mac/Squirrel.pkg
cat .ci/mac-install-template.sh | envsubst '${SQUIRREL_PACKAGES}' > ./build/mac/mac-install.sh

# Build archives
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
- name: build
run: |
export SQUIRREL_VERSION=$( git ls-remote --tags --refs --sort="v:refname" https://github.com/rime/squirrel.git | grep -v '/latest$' | tail -n1 | sed 's/.*\///' )
export SQUIRREL_LINK=https://github.com/rime/squirrel/releases/download/${SQUIRREL_VERSION}/Squirrel-${SQUIRREL_VERSION}.zip
export SQUIRREL_LINK=https://github.com/rime/squirrel/releases/download/${SQUIRREL_VERSION}/Squirrel-${SQUIRREL_VERSION}.Pkg
export SQUIRREL_PACKAGES="cantonese emoji CanCLID/rime-loengfan custom:set:config=default,key=installed_from,value=rime-cantonese custom:clear_schema_list custom:add:schema=jyut6ping3 custom:add:schema=cangjie5 custom:add:schema=stroke custom:add:schema=luna_pinyin lotem/rime-octagram-data lotem/rime-octagram-data@hant lotem/rime-octagram-data:customize:schema=jyut6ping3,model=hant"
export IBUS_PACKAGES=${SQUIRREL_PACKAGES}
# Download Mac installation script, Mac package and unzip
wget ${SQUIRREL_LINK}
7z e Squirrel*.zip -obuild/mac/
mv Squirrel*.Pkg ./build/mac/Squirrel.pkg
cat .ci/mac-install-template.sh | envsubst '${SQUIRREL_PACKAGES}' > ./build/mac/mac-install.sh
# Build archives
Expand All @@ -49,7 +49,8 @@ jobs:
- run: mkdir output
- run: chmod u+x .ci/*
- run: mkdir -p build/windows/data
- run: |
- name: build
run: |
export WEASEL_VERSION=$( git ls-remote --tags --refs --sort="v:refname" https://github.com/rime/weasel.git | grep -v '/latest$' | tail -n1 | sed 's/.*\///' )
export WEASEL_LINK=https://github.com/rime/weasel/releases/download/${WEASEL_VERSION}/weasel-${WEASEL_VERSION}.0-installer.exe
export WEASEL_PACKAGES="cantonese emoji CanCLID/rime-loengfan custom:set:config=default,key=installed_from,value=rime-cantonese custom:clear_schema_list custom:add:schema=jyut6ping3 custom:add:schema=cangjie5 custom:add:schema=stroke custom:add:schema=luna_pinyin lotem/rime-octagram-data lotem/rime-octagram-data@hant lotem/rime-octagram-data:customize:schema=jyut6ping3,model=hant"
Expand Down

0 comments on commit b0d8cf5

Please sign in to comment.