From d306d1be007e5d9af53e38d61ada46e93f2d3f7c Mon Sep 17 00:00:00 2001 From: Jing Luo Date: Sun, 9 Apr 2023 17:19:45 +0900 Subject: [PATCH] Changed package name Updated electron version to 24.0.0 Created README.MD Added GitHub repo URL to package.json Signed-off-by: Jing Luo --- README.MD | 45 +++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 README.MD diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..14fb84a --- /dev/null +++ b/README.MD @@ -0,0 +1,45 @@ +## Build this repo locally + +First, install node.js and npm. + +``` +sudo snap refresh && sudo snap install node --classic --channel=19 +``` +Alternatively, use the package manager of your OS to install node.js and npm. For example, on Debian/Ubuntu: + +``` +sudo apt update && sudo apt install nodejs +``` + +Check the version of node.js and npm: +``` +node -v +npm -v +``` + +Run these commands to clone this repo and initialize the build environment: + +``` +git clone https://github.com/delgh1/eden-chromium-app.git +cd eden-chromium-app +npm init +npm install --save-dev electron +npm install --save-dev @electron-forge/cli +npx electron-forge import +``` + +To create a distributable: + +``` +npm run make +``` + +This will creates the `out` folder where the package will be located. + +To make a Windows installer, dependencies [`mono`](https://www.mono-project.com/download/stable/) and [`wine`](https://wiki.winehq.org/Ubuntu) must be installed first. + +Run these commands to make a binary package that can run on 64bit Windows. + +``` +npm run make -- --arch=x64 --platform=win32 +``` diff --git a/package.json b/package.json index aa200a6..67f3b5c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "eden-forum", + "name": "eden-chromium-app", "version": "0.0.2", "description": "Eden Corp. chromium app with the homepage set to its forum", "main": "main.js",