Create BUILD.md

pull/103/head
Lockness 2 years ago committed by GitHub
parent a47d1fa1c8
commit 6323d5ca54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,53 @@
# Building
## Windows
1. Install node.js from the [node.js website](https://nodejs.org/en/)
## Mac OS
# TODO: please do this
## Linux
1. Install nodejs
Debian/Ubuntu:
# TODO: please test this
```bash
sudo apt install nodejs npm
```
Archlinux:
```bash
sudo pacman -S nodejs npm
```
2. Clone this repository
```bash
git clone https://github.com/GooseMod/OpenAsar.git
cd OpenAsar
```
3. Run the commands to build the app.asar file
```bash
# Prerequisites
npm install -g asar
# Clean up previous builds
rm app.asar
bash scripts/injectPolyfills.sh
# Set the version
sed -i -e "s/nightly/nightly-$(git rev-parse HEAD | cut -c 1-7)/" src/index.js
node scripts/strip.js
# Build the asar
npx asar pack src app.asar
```
Loading…
Cancel
Save