MajsoulPlus / majsoul-plus

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

[feature request] re-create for mobile platform #104

Closed op06072 closed 4 years ago

op06072 commented 4 years ago

描述您希望的解决方案 I want to run this app with mobile platform.

描述您希望的备选方案 I want to re-create this app with React or another framework, but I'm not sure if it's possible. Anyway, all I want is an app to run on a mobile platform. Whether it's made in webview or native.

Yesterday17 commented 4 years ago

It's not possible to migrate it to mobile platforms directly since Electron is not available on mobile platforms.

But you can implement the extension api. The corresponding source of this part is mostly electron-free(ipcMain can be ignored).

https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/BaseManager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/extension/manager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/resourcepack/manager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/server.ts

op06072 commented 4 years ago

It's not possible to migrate it to mobile platforms directly since Electron is not available on mobile platforms.

But you can implement the extension api. The corresponding source of this part is mostly electron-free(ipcMain can be ignored).

https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/BaseManager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/extension/manager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/resourcepack/manager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/server.ts

If so, does it mean that I have to create the new one using the four mentioned as a core?

op06072 commented 4 years ago

It's not possible to migrate it to mobile platforms directly since Electron is not available on mobile platforms.

But you can implement the extension api. The corresponding source of this part is mostly electron-free(ipcMain can be ignored).

https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/BaseManager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/extension/manager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/resourcepack/manager.ts https://github.com/MajsoulPlus/majsoul-plus/blob/master/src/server.ts

And I have to write new logic for things like card lists, right?

Yesterday17 commented 4 years ago

@op06072 Sure.

op06072 commented 4 years ago

@op06072 Sure.

That's bad news... Thank you for the answer.