@mainsilent/linux.js
v1.1.2
Published
Make your own linux distro with javascript
Downloads
4
Readme
linux.js
linux.js is a Nodejs library to make a debian based linux distro for your electron project.
Installation
First make sure you have these programs installed:
build-essential
wget
squashfs-tools
mkisofsThen install the linux.js library and run npx reqs to get the required filesystem:
npm i @mainsilent/linux.js --save-dev
npx reqsIf you have problems with downloading the filesystem, you can download it from Releases then place the filesystem.squashfs in the root directory of your project and use the command below to extract the filesystem:
unsquashfs -d filesystem filesystem.squashfsYou can also delete the filesystem.squashfs after decompressing.
Usage
Specify the AppImage path in package.json, for example "AppImage": "dist/test.AppImage".
Then run the command below to make the ISO file (it will be located in filesystem directory):
npx linuxjsYou can edit the Makefile in filesystem directory to change the behaviour of npx linuxjs, for example put the ISO file in the root directory of your project.
Chroot
To install new programs for your linux distro, change the directory to filesystem and use chroot command to change the root directory:
sudo chroot ./chroot
apt install whatever
exitDonate
BTC: 1JBKewHbLMcECaWg23o1TXpvpzUyDJmFGE
