Update BUILD.md
This commit is contained in:
parent
f08164f50f
commit
a5d6eb4a0b
22
BUILD.md
22
BUILD.md
@ -5,10 +5,26 @@ TODO: can anyone make this fancier pls
|
||||
### prerequisites:
|
||||
vscode or something similar, get it from here https://github.com/e3kskoy7wqk/Electron-for-windows-7
|
||||
|
||||
nodejs, get it from here https://git.randomserver.top/administrator/nodejs7
|
||||
nodejs 16, one day this will work with more modern nodejs, its just that theres no point in updating it now.
|
||||
|
||||
### how2build
|
||||
1. clone or download this repository
|
||||
2. you open a terminal in vscode, and type the following commands
|
||||
|
||||
you open a terminal in vscode, and type the following commands
|
||||
```npm i```
|
||||
|
||||
TODO: complete this
|
||||
```$(npm bin)/electron-rebuild```
|
||||
|
||||
(Windows 10+ users) To run, use the following command
|
||||
|
||||
```npm start```
|
||||
|
||||
If you are wondering why you can only test this on windows 10 without packaging, it is because [electron added ESM support in electron 28](https://www.electronjs.org/blog/electron-28-0#highlights), not 22.
|
||||
|
||||
If you happen to be a windows 8.1 and under user, you can still test this, but you have to package the build using electron-builder, just run the following:
|
||||
|
||||
```npx electron-builder```
|
||||
|
||||
get yourself a copy of [the special electron](https://github.com/e3kskoy7wqk/Electron-for-windows-7) , after that go into the dist > win-unpackaged > resources, grab the asar file, and put it in [your special electron](https://github.com/e3kskoy7wqk/Electron-for-windows-7) (same thing, except it's in that one's resources folder)
|
||||
|
||||
Sadly, you do have to package the asar everytime, but oh well, it's whatever at the very least you can build on your OS
|
Loading…
x
Reference in New Issue
Block a user