MajsoulPlus / majsoul-plus

雀魂Plus——雀魂麻将Majsoul专用浏览器,提供了一些专有特性
GNU Affero General Public License v3.0
796 stars 115 forks source link

[BUG] Archlinux Build 失败 #116

Closed yudshj closed 3 years ago

yudshj commented 3 years ago

安装gconf后,直接运行yay -S majsoul-plus构建,出现错误:

yarn run v1.22.10
$ yarn pre-build && electron-builder --x64 --ia32
$ tsc && yarn sass && node build.js
src/bin/main/mainLoader.ts:115:30 - error TS2551: Property 'getWebContents' does not exist on type 'WebviewTag'. Did you mean 'getWebContentsId'?

115     webContents = mainWindow.getWebContents()
                                 ~~~~~~~~~~~~~~

  node_modules/electron/electron.d.ts:10845:5
    10845     getWebContentsId(): number;
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'getWebContentsId' is declared here.

src/manager/main.ts:90:15 - error TS2339: Property 'openItem' does not exist on type 'Shell'.

90         shell.openItem(path.join(Global.appDataDir, ext.name.toLowerCase()))
                 ~~~~~~~~

Found 2 errors.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> 错误: 在 build() 中发生一个错误。
    正在放弃...
生成时出错: majsoul-plus
yay -S majsoul-plus  100.27s user 7.04s system 31% cpu 5:37.78 total

估计是TypeScript版本太高了?有针对Arch系列的解决措施吗?

Yesterday17 commented 3 years ago

雀 P 依赖的是 electron7,但 PKGBUILD 里是直接依赖的 electron,或许是这个原因?