Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

請問如何參與 PIME 的發行 #810

Open
zonble opened this issue Mar 1, 2024 · 3 comments
Open

請問如何參與 PIME 的發行 #810

zonble opened this issue Mar 1, 2024 · 3 comments

Comments

@zonble
Copy link
Contributor

zonble commented Mar 1, 2024

PIME 的開發團隊好。

我是小麥注音輸入法開發者之一 zonble。小麥注音有一套基於 TypeScript 的實作,原本用於開發 Chrome OS 的版本,由於 PIME 支援 Node.js,前陣子我們也嘗試將原本的實作介接 PIME 的介面,目前也很順利地將小麥注音在 PIME 上面跑起來。雖然目前還不穩定,但我現在就是在用這套輸入法打字。

這個 repo 位在 https://github.com/openvanilla/McBopomofoWeb ,分支是 dev//pime。我們將整個 TypeScript 的實作用 webpack 打包之後,變成單一的 index.js,然後讓 PIME 載入。效果可以見附件的影片。

如果在後續的 PIME 版本中,可以一起發行小麥輸入法,也可以提供用戶一個選擇。不過,由於這個輸入法本身與 Chrome OS 版本以及一個純網頁版本共用,應該不適合進入 PIME 的 repo。想向開發團隊詢問,有什麼建議的方式,可以讓小麥輸入法參與 PIME 的發行。謝謝!

bandicam.2024-03-01.13-41-45-907.mp4
@ottokang
Copy link
Contributor

ottokang commented Apr 9, 2024

發行主要是 @PCMan ,要等他回覆了

@PCMan
Copy link
Member

PCMan commented Apr 9, 2024

Hi @zonble 前輩好久不見!

我覺得有幾個做法

  1. 把 webpack 過的 index.js 放進 PIME repo,我們這邊只放小麥上游的 stable release,您的開發繼續在原本 repo 即可。上游出新版本,我們就更新這個 index.js。在小麥的目錄下放入 MIT license 跟如何下載原始 source code 的說明,或是同時放入 tarball 也可以,主要是確保開發者/使用者能取得小麥的 code
  2. 把小麥的 git repo 用 submodule 掛進 PIME 下面,然後想辦法一起 build (這個可能比較複雜,我不是很確定怎樣做)
  3. 把小麥輸入法的 engine 放到一個 npm module,由小麥自己的 git repo build 出來,只有跟 PIME 相接的少量介面 glue code 放進 PIME codebase

但其實我跟 node 不是很熟,也許 @jessy1092 會有比較好的建議

最後 installer 的 exe 通常是我這邊 build & release 的,因為要上 code signing。
Thanks!

@zonble
Copy link
Contributor Author

zonble commented Apr 10, 2024

Hi PCMan,真的好久不見!

我個人會比較偏向方案 2

  1. 將 webpack 過的 index.js 放進 repo 裡頭,可能會有一些安全上的顧慮,因為其實很難驗證知道編過的 index.js 是不是真的從某個版本 source code 出來的,沒有被加過料(看看前陣子的 xz 事件…)。雖然說應該會是從我這邊出來的,但不太應該這樣做事。
  2. 因為小麥也不是很大的一個專案,把核心與前端切在兩個 repo 裡頭,對我來說負擔也有點大。

我大概會先研究一下 PIME 的 build script :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants