-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b35f9be
commit f89adec
Showing
7 changed files
with
69 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
build | ||
*.dmg | ||
*.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This directory caches tarball of build dependencies | ||
(downloaded from [prebuilder](https://github.com/fcitx-contrib/fcitx5-macos-prebuilder/releases)), | ||
which will be extracted to `/tmp/fcitx5`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
set -e | ||
|
||
has_homebrew_deps=0 | ||
|
||
cd /Library/Input\ Methods/Fcitx5.app/Contents | ||
libs=(MacOS/Fcitx5) | ||
libs+=($(ls lib/libFcitx5{Config,Core,Utils}.dylib)) | ||
libs+=($(ls lib/fcitx5/*.so)) | ||
libs+=(lib/fcitx5/libexec/comp-spell-dict) | ||
|
||
for lib in "${libs[@]}"; do | ||
if otool -L $lib | grep /usr/local; then | ||
otool -L $lib | ||
has_homebrew_deps=1 | ||
fi | ||
done | ||
|
||
exit $has_homebrew_deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
set -e | ||
|
||
if [[ -z $1 ]]; then | ||
ARCH=`uname -m` | ||
else | ||
ARCH=$1 | ||
fi | ||
|
||
# This is the same with INSTALL_PREFIX of prebuilder | ||
INSTALL_PREFIX=/tmp/fcitx5 | ||
mkdir -p $INSTALL_PREFIX | ||
|
||
deps=( | ||
expat | ||
fmt | ||
libintl | ||
json-c | ||
libuv | ||
libxkbcommon | ||
) | ||
|
||
for dep in "${deps[@]}"; do | ||
file=$dep-$ARCH.tar.bz2 | ||
[[ -f cache/$file ]] || wget -P cache https://github.com/fcitx-contrib/fcitx5-macos-prebuilder/releases/download/latest/$file | ||
tar xjvf cache/$file -C $INSTALL_PREFIX | ||
done |