forked from flathub/io.github.fm_elpac.pmim_ibus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.github.fm_elpac.pmim_ibus.yml
141 lines (120 loc) · 5.07 KB
/
io.github.fm_elpac.pmim_ibus.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
app-id: io.github.fm_elpac.pmim_ibus
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
separate-locales: false
command: run.sh
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --share=network
- --device=dri
- --filesystem=xdg-run/pmim:create
modules:
- name: pmim-ibus
buildsystem: simple
build-commands:
# files for desktop app
- install -D -t /app/share/metainfo/ pmim-ibus/flatpak/io.github.fm_elpac.pmim_ibus.metainfo.xml
- install -D -t /app/share/applications/ pmim-ibus/flatpak/io.github.fm_elpac.pmim_ibus.desktop
- install -D pmim-ibus/logo/pmim-2024-2.svg /app/share/icons/hicolor/scalable/apps/io.github.fm_elpac.pmim_ibus.svg
- install -D -t /app/ pmim-ibus/LICENSE
- install -D -t /app/ pmim-ibus/README.md
# /app/bin
- install -Dm755 -t /app/bin/ run.sh
- install -Dm755 -t /app/bin/ pmim-ibus/flatpak/restart.sh
- install -Dm755 -t /app/bin/ dist-deno/deno
- |
if [ "$FLATPAK_ARCH" == "x86_64" ]; then
install -Dm755 -t /app/bin/ dist-librush/release/ibrus
fi
- |
if [ "$FLATPAK_ARCH" == "aarch64" ]; then
install -Dm755 -t /app/bin/ dist-librush/aarch64-unknown-linux-gnu/release/ibrus
fi
- cp pmim-ibus/flatpak/pmim_ibrus.xml /app
# /app/main *.js
- mkdir -p /app/main
- cp pmim-ibus/electronjs/*.js /app/main
# pmim-server
- cp -r server /app/
# ui-vue-dist
- cp -r ui/dist/* /app/server/static/
# plugin
- mkdir -p /app/server/plugin
- cp -r plugin/* /app/server/plugin
# electron dist
- mkdir -p /app/dist-electron
- cp dist-electron.zip /app/dist-electron
- cd /app/dist-electron && unzip dist-electron.zip
- rm /app/dist-electron/dist-electron.zip
# pmim-data
- zstd -d pmim_sys-0.db.zst
- cp pmim_sys-0.db /app
sources:
- type: script
dest-filename: run.sh
commands:
- env PMIMS_DB=${XDG_CONFIG_HOME}/pmim PMIMS_PLUGIN=${XDG_CONFIG_HOME}/pmim/plugin zypak-wrapper.sh /app/dist-electron/electron /app/main/main.js "$@"
# pmim-ibus
- type: git
dest: pmim-ibus
url: https://github.com/fm-elpac/pmim-ibus
tag: v0.1.10
commit: ee2de15ef8ee6a2812b2dc0503eb5e73cb6d006e
# pmim-ibus/ui-vue-dist
- type: archive
dest: ui
url: https://github.com/fm-elpac/pmim-ibus/releases/download/v0.1.10/ui-vue-dist.tar.zst
sha256: 7310b3b43e73183ebfa7211e20c1be437ed8f7731be7e2e0d30fec91309301f6
# pmim-ibus/pmim-plugin
- type: archive
dest: plugin
url: https://github.com/fm-elpac/pmim-ibus/releases/download/v0.1.10/pmim-plugin.tar.zst
sha256: 116ce9097857797eb4664d3d4b423fa35be69a3f8b6d35cf81a5799e7fd88ad0
# pmim-server
- type: archive
dest: server
url: https://github.com/fm-elpac/pmim/releases/download/v0.1.5/pmim-server.tar.zst
sha256: 8b63350669bfc25bbedcb6a87f0af1ab8630e5e2ea356acef8bf034450da0e79
# deno
- type: archive
dest: dist-deno
only-arches: [ "x86_64" ]
url: https://github.com/denoland/deno/releases/download/v1.45.3/deno-x86_64-unknown-linux-gnu.zip
sha256: 8102989679275f1c9859fd963ef407f60da0274337fbb75290b3e9df8174a30b
- type: archive
dest: dist-deno
only-arches: [ "aarch64" ]
url: https://github.com/denoland/deno/releases/download/v1.45.3/deno-aarch64-unknown-linux-gnu.zip
sha256: a11932c65d60c128a64927236efcab79e849171ceb0a3dc200496a63053cff72
# electronjs dist
- type: file
dest-filename: dist-electron.zip
only-arches: [ "x86_64" ]
url: https://github.com/electron/electron/releases/download/v31.3.0/electron-v31.3.0-linux-x64.zip
sha256: f44e33a29019ce7f12a78d7dc376b467907f71936323feadae5a8ad932951856
- type: file
dest-filename: dist-electron.zip
only-arches: [ "aarch64" ]
url: https://github.com/electron/electron/releases/download/v31.3.0/electron-v31.3.0-linux-arm64.zip
sha256: b860aa3cd3bc9640ff7d28e66968df26a61aae2553705b0753ee5ee3f20f6fad
# ibrus
- type: archive
dest: dist-librush
only-arches: [ "x86_64" ]
url: https://github.com/fm-elpac/librush/releases/download/v0.1.0/librush_release_x86_64-unknown-linux-gnu.tar.zst
sha256: 8af4ae4d927b3a2a88a8e8dbb4448bde0c384d509bc838c4aaeaabc24525906e
- type: archive
dest: dist-librush
only-arches: [ "aarch64" ]
url: https://github.com/fm-elpac/librush/releases/download/v0.1.0/librush_release_aarch64-unknown-linux-gnu.tar.zst
sha256: 439c170b9f74a979115b7b544334fbeaccc97fe79a33a286e1066e7897fa447b
# pmim-data/pmim_sys-0.db.zst
- type: file
dest-filename: pmim_sys-0.db.zst
url: https://github.com/fm-elpac/pmim-data/releases/download/v0.1.5/pmim_sys-0.db.zst
sha256: e4d424c095c3bcbff2d0a9c2aa4bca6dde8185454d18d4c96fa058781a54ef60