Skip to content

Commit 9a098f6

Browse files
committed
update packages
1 parent 1e9c84b commit 9a098f6

8 files changed

+36
-24
lines changed

.gitmodules

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[submodule "librime"]
22
path = librime
3-
url = https://github.com/rime/librime.git
3+
url = https://github.com/groverlynn/librime.git
4+
branch = choose
45
ignore = dirty
56
[submodule "plum"]
67
path = plum

INSTALL.md

+19-8
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ Choose one of the following options.
6161
``` sh
6262
export BUILD_UNIVERSAL=1
6363

64-
make -C librime xcode/deps/boost
64+
export BOOST_ROOT="$(pwd)/librime/deps/boost_1_83_0"
6565

66-
export BOOST_ROOT="$(pwd)/librime/deps/boost_1_78_0"
66+
export CMAKE_GENERATOR=Ninja
67+
68+
bash librime/install-boost.sh
6769
```
6870

6971
Let's set `BUILD_UNIVERSAL` to tell `make` that we are building Boost as
@@ -96,8 +98,14 @@ port install boost -no_static
9698

9799
* Make sure you have updated all the dependencies. If you cloned squirrel with the command in this guide, you've already done it. But if not, this command will update submodules.
98100

99-
```
101+
``` sh
100102
git submodule update --init --recursive
103+
104+
export BUILD_UNIVERSAL=1
105+
export CMAKE_GENERATOR=Ninja
106+
107+
make -C librime
108+
make deps
101109
```
102110

103111
* With all dependencies ready, build `Squirrel.app`:
@@ -109,11 +117,14 @@ make
109117
To build only for the native architecture, and/or specify the lowest supported macOS version, pass variable `ARCHS`/`MACOSX_DEPLOYMENT_TARGET` to `make`:
110118

111119
``` sh
112-
# for Universal macOS App, targetting Ventura
113-
make ARCHS='arm64 x86_64' MACOSX_DEPLOYMENT_TARGET='13.0'
120+
# for Universal macOS App
121+
make ARCHS='arm64 x86_64' MACOSX_DEPLOYMENT_TARGET='10.15'
122+
123+
# for Mac computers with Apple Silicon
124+
make ARCHS='arm64' MACOSX_DEPLOYMENT_TARGET='10.15'
114125

115-
# for ARM macOS App, targetting Ventura
116-
make ARCHS='arm64' MACOSX_DEPLOYMENT_TARGET='13.0'
126+
# for Intel-based Mac
127+
make ARCHS='x86_64' MACOSX_DEPLOYMENT_TARGET='10.15'
117128
```
118129

119130
## Install it on your Mac
@@ -123,7 +134,7 @@ make ARCHS='arm64' MACOSX_DEPLOYMENT_TARGET='13.0'
123134
Just add `package` after `make`
124135

125136
```
126-
make package ARCHS='arm64' MACOSX_DEPLOYMENT_TARGET='13.0'
137+
make package ARCHS='arm64' MACOSX_DEPLOYMENT_TARGET='10.14'
127138
```
128139

129140
Define or echo `DEV_ID` to automatically handle code signing and [notarization](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution) (Apple Developer ID needed)

Makefile

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
all: release
44
install: install-release
55

6-
# Change to `xcode/dist-with-icu` if boost is linked to icu libraries.
7-
RIME_DIST_TARGET = xcode/dist
6+
# Change to `dist-with-icu` if boost is linked to icu libraries.
7+
RIME_DIST_TARGET = install
88

99
RIME_BIN_DIR = librime/dist/bin
1010
RIME_LIB_DIR = librime/dist/lib
@@ -39,7 +39,7 @@ $(RIME_LIBRARY):
3939
$(MAKE) librime
4040

4141
$(RIME_DEPS):
42-
$(MAKE) -C librime xcode/deps
42+
$(MAKE) -C librime deps
4343

4444
librime: $(RIME_DEPS)
4545
$(MAKE) -C librime $(RIME_DIST_TARGET)
@@ -67,7 +67,7 @@ plum-data:
6767
$(MAKE) copy-plum-data
6868

6969
opencc-data:
70-
$(MAKE) -C librime xcode/deps/opencc
70+
$(MAKE) -C librime deps/opencc
7171
$(MAKE) copy-opencc-data
7272

7373
copy-plum-data:
@@ -88,9 +88,9 @@ _=$() $()
8888
export CMAKE_OSX_ARCHITECTURES = $(subst $(_),;,$(ARCHS))
8989
endif
9090

91-
ifdef MACOSX_DEPLOYMENT_TARGET
91+
# https://cmake.org/cmake/help/latest/envvar/MACOSX_DEPLOYMENT_TARGET.html
92+
MACOSX_DEPLOYMENT_TARGET ?= 10.15
9293
BUILD_SETTINGS += MACOSX_DEPLOYMENT_TARGET="$(MACOSX_DEPLOYMENT_TARGET)"
93-
endif
9494

9595
release: $(DEPS_CHECK)
9696
bash package/add_data_files
@@ -170,5 +170,5 @@ clean:
170170

171171
clean-deps:
172172
$(MAKE) -C plum clean
173-
$(MAKE) -C librime xcode/clean
173+
$(MAKE) -C librime clean
174174
$(MAKE) clean-sparkle

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
安裝輸入法
2929
---
3030

31-
本品適用於 macOS 12.0+
31+
本品適用於 macOS 10.15+
3232

3333
初次安裝,如果在部份應用程序中打不出字,請註銷並重新登錄。
3434

Sparkle

Submodule Sparkle updated 663 files

action-install.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
set -e
44

5-
rime_version=1.8.5
6-
rime_git_hash=08dd95f
5+
rime_version=1.9.0-m
6+
rime_git_hash=960dd0e
77

88
rime_archive="rime-${rime_git_hash}-macOS.tar.bz2"
9-
rime_download_url="https://github.com/rime/librime/releases/download/${rime_version}/${rime_archive}"
9+
rime_download_url="https://github.com/groverlynn/librime/releases/download/${rime_version}/${rime_archive}"
1010

1111
rime_deps_archive="rime-deps-${rime_git_hash}-macOS.tar.bz2"
12-
rime_deps_download_url="https://github.com/rime/librime/releases/download/${rime_version}/${rime_deps_archive}"
12+
rime_deps_download_url="https://github.com/groverlynn/librime/releases/download/${rime_version}/${rime_deps_archive}"
1313

1414
mkdir -p download && (
1515
cd download

librime

Submodule librime updated 247 files

plum

Submodule plum updated 1 file

0 commit comments

Comments
 (0)