forked from rime/weasel
-
Notifications
You must be signed in to change notification settings - Fork 23
/
github.install.bat
33 lines (24 loc) · 1.28 KB
/
github.install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
setlocal
git submodule init
git submodule update plum
set rime_version=1.11.2
set rime_hash=5b09f35
set download_archive=rime-%rime_hash%-Windows-msvc-x86.7z
set download_archive_deps=rime-deps-%rime_hash%-Windows-msvc-x86.7z
set download_archive_x64=rime-%rime_hash%-Windows-msvc-x64.7z
set download_archive_deps_x64=rime-deps-%rime_hash%-Windows-msvc-x64.7z
curl -LO https://github.com/rime/librime/releases/download/%rime_version%/%download_archive%
curl -LO https://github.com/rime/librime/releases/download/%rime_version%/%download_archive_deps%
curl -LO https://github.com/rime/librime/releases/download/%rime_version%/%download_archive_x64%
curl -LO https://github.com/rime/librime/releases/download/%rime_version%/%download_archive_deps_x64%
7z x %download_archive% * -olibrime\ -y
7z x %download_archive_deps% * -olibrime\ -y
7z x %download_archive_x64% * -olibrime_x64\ -y
7z x %download_archive_deps_x64% * -olibrime_x64\ -y
copy /Y librime\dist\include\rime_*.h include\
copy /Y librime\dist\lib\rime.lib lib\
copy /Y librime\dist\lib\rime.dll output\Win32\
copy /Y librime_x64\dist\lib\rime.lib lib64\
copy /Y librime_x64\dist\lib\rime.dll output\
if not exist output\data\opencc mkdir output\data\opencc
copy /Y librime\share\opencc\*.* output\data\opencc\