Add build.sh

There are no docs for building the app.asar yourself, I'm making this file for people who want to. (Just copied from the github action)
pull/103/head
Lockness 2 years ago committed by GitHub
parent 7a04cb57df
commit a47d1fa1c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,18 @@
#!/bin/bash
# Builds the app.asar
# 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