Skip to content

Instantly share code, notes, and snippets.

@graphemecluster
Created November 18, 2024 16:23
Show Gist options
  • Select an option

  • Save graphemecluster/7edc494484ef76d8e21271c3722246f4 to your computer and use it in GitHub Desktop.

Select an option

Save graphemecluster/7edc494484ef76d8e21271c3722246f4 to your computer and use it in GitHub Desktop.
Personal script to build https://github.com/TypeDuck-HK/schema and push to the `ios` branch for use by https://github.com/TypeDuck-HK/TypeDuck-iOS
#!/bin/sh
set -e
FILTER=~/Documents/GitHub/Cantoboard/MissingGlyphRemover
if [ ! -f $FILTER/main ]; then
cd $FILTER
swiftc main.swift
fi
cd ~/Documents/GitHub/Cantoboard/CantoboardFramework/Data/Rime
git fetch
git checkout -fB ios origin/master
git reset origin/ios
git restore .gitignore
$FILTER/main --line cangjie3.dict.yaml
$FILTER/main --line cangjie5.dict.yaml
$FILTER/main --line loengfan.dict.yaml
$FILTER/main --line luna_pinyin.dict.yaml
$FILTER/main --line jyut6ping3.dict.yaml
~/Documents/GitHub/librime-ios-build/build/librime/macosx_arm64/bin/Release/rime_deployer.app/Contents/MacOS/rime_deployer --build .
git commit -am "Update to Files from $(git rev-parse origin/master)"
git push -u origin ios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment