dscalzi / HeliosLauncher

☀ Custom launcher for modded minecraft written in Electron and Node.js
MIT License
855 stars 1.76k forks source link

linux can't build #223

Closed Banane480 closed 2 years ago

Banane480 commented 2 years ago

aidan@raspberrypi:~/Desktop/erangel/launcher/erangellauncher $ npm run dist:linux

erangellauncher@3.0.2 dist:linux /home/aidan/Desktop/erangel/launcher/erangellauncher npm run dist -- -l

erangellauncher@3.0.2 dist /home/aidan/Desktop/erangel/launcher/erangellauncher electron-builder build "-l"

Error: Cannot find module 'fs/promises' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! /home/aidan/.npm/_logs/2022-05-07T08_30_11_131Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! erangellauncher@3.0.2 dist:linux: npm run dist -- -l npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the erangellauncher@3.0.2 dist:linux script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/aidan/.npm/_logs/2022-05-07T08_30_13_982Z-debug.log

How to fix ?? I'm bad wih linux...

alduish commented 2 years ago

i'm really not sure but maybe you can't compile helios on arm (i'm really not sure) (raspberrypi are arm-based) so try on a virtual machine if you don't have non arm linux computer

Banane480 commented 2 years ago

Okay let me a moment XD

Banane480 commented 2 years ago

Let me a few days pls XD

GeekCornerGH commented 2 years ago

please upgrade your nodejs to v16, also using GitHub actions is strongly recommanded, and Minecraft Java isn't designed to run on a Raspberry

Banane480 commented 2 years ago

What is GitHub action and ok for node 16

GeekCornerGH commented 2 years ago

Please take a look here

Banane480 commented 2 years ago

So I will try this week end on Linux (sorry for delay). I have an another question, can we set a gif in background ??

And how to set certificate on the launcher (smart screen block the launcher)

alduish commented 2 years ago

to set certificate first you need to buy one (it's expensive) and next sign the launcher it's an electron app search on internet to know what to do, for the gif i don't know but you can try yourself and see

PS : you can also do that https://www.microsoft.com/en-us/wdsi/filesubmission but you need to do it for every update of your launcher

Banane480 commented 2 years ago

thanks ! (now I have an another problem and again sorry for the delay)

**PS C:\Users\aidan\Desktop\ERANGEL\launcher\erangellauncher> npm start

erangellauncher@3.0.3 start electron .

'electron' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. PS C:\Users\aidan\Desktop\ERANGEL\launcher\erangellauncher> npm i
npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN tarball tarball data for minimatch@https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz (sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==) seems to be corrupted. Trying again. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN tarball tarball data for minimatch@https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz (sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==) seems to be corrupted. Trying again. npm ERR! code EINTEGRITY npm ERR! sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== integrity checksum failed when using sha512: wanted sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== but got sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==. (11423 bytes)

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\aidan\AppData\Local\npm-cache_logs\2022-05-12T15_01_18_706Z-debug-0.log PS C:\Users\aidan\Desktop\ERANGEL\launcher\erangellauncher>**

alduish commented 2 years ago

it's another problem so it's off topic (so open a new issue) but anyways are you sure that your nodejs is updated ?

Banane480 commented 2 years ago

I have node 16 and I already have repair it (I'll crête new issue tomorrow and I try Linux tomorrow too

Banane480 commented 2 years ago

with node 16

┌──(aidan㉿KaliDeAidan)-[~/Bureau/launcher/erangellauncher] └─$ npm i npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN tarball tarball data for minimatch@https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz (sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==) seems to be corrupted. Trying again. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN tarball tarball data for minimatch@https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz (sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==) seems to be corrupted. Trying again. npm ERR! code EINTEGRITY npm ERR! sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== integrity checksum failed when using sha512: wanted sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== but got sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==. (11423 bytes)

npm ERR! A complete log of this run can be found in: npm ERR! /home/aidan/.npm/_logs/2022-05-14T08_01_18_469Z-debug-0.log

alduish commented 2 years ago

apparently minimatch is corrupted for you

alduish commented 2 years ago

are you sure that your npm in updated to the latest version ?

Banane480 commented 2 years ago

No, not the latest

Banane480 commented 2 years ago

And how to fix "mini match"

Banane480 commented 2 years ago

okay so it worked. I have the .AppImage but I can't launch it...

GeekCornerGH commented 2 years ago

A quick search on Google shows intresting things

Banane480 commented 2 years ago

Thanks boy! Juste a question, can we set gif en backround ?? (I'm bad in development)

alduish commented 2 years ago

okay so it worked. I have the .AppImage but I can't launch it...

now it's from linux have you gave the appimage execution rights ?

alduish commented 2 years ago

Thanks boy! Juste a question, can we set gif en backround ?? (I'm bad in development)

i don't know but just take a gif and try it yourself

Banane480 commented 2 years ago

Okay I close the bug