Redo building/packaging commands to replace electron-builder.
Also make them more sensible and user-friendly overall, relatively.
Update README with the commands and better instructions.
Important: This ensures that the commands issued by build are
cross-platform in nature instead of hoping. rimraf, cpy, etc.
<h6align="center">Logo designed by <ahref="http://andyur.com/"target="_blank">Andriy Yurchenko</a></h6>
<h6align="center">Original rambox by <ahref="https://github.com/saenzramiro"target="_blank">Ramiro Saenz</a></h6>
@ -205,7 +205,7 @@ I'll think about it later.
## Compiling
To build your own copy, you need:
- A recent version of the [Java SE Development Kit](http://www.oracle.com/technetwork/java/javase/downloads/index.html). 8.0 may be needed on some platform configurations.
- An 8.0 version of the [Java SE Development Kit](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
- A recent version of [Ruby](https://www.ruby-lang.org/en/downloads/).
- A recent version of [Sencha CMD](https://www.sencha.com/products/extjs/cmd-download/), and to install it with the Compass extension.
- A recent version of [NodeJS](https://nodejs.org/en/download/) with npm.
@ -217,10 +217,18 @@ cd rambox
cp env-sample.js env.js
# update env.js with your auth0 details.
npm install
npm run setup:win64
npm run repack:win64
```
You can substitute win64 for linux32, linux64, win32, or osx as desired. This will create installers appropriate to your platform in dist.
Win32 builds are **deprecated** by electron-builder and is likely to be removed at some point in the future.
You can substitute win64 for linux32, linux64, win32, or osx as desired. This will create an unpacked directory in '**dist**' for testing.
```shell
npm run setup
```
This step instead of **repack** will create an installer appropriate to your platform in '**dist**'.
You can place unpacked files over where the installers normally place their files for development/testing purposes.
**NOTE:** Win32 builds are **deprecated** by electron-builder and are likely to be removed at some point in the future.
"setup":"npm run sencha:clean && npm run sencha:compile && npm run build",
"setup:osx":"npm run sencha:clean && npm run sencha:compile && npm run build:osx",
"setup:win":"npm run sencha:clean && npm run sencha:compile && npm run build:win",
"setup:win32":"npm run sencha:clean && npm run sencha:compile && npm run build:win32",
@ -33,8 +37,15 @@
"setup:linux":"npm run sencha:clean && npm run sencha:compile && npm run build:linux",
"setup:linux32":"npm run sencha:clean && npm run sencha:compile && npm run build:linux32",
"setup:linux64":"npm run sencha:clean && npm run sencha:compile && npm run build:linux64",
"all:win":"npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win && npm run zip:win32 && npm run zip:win64 && npm run build:win",
"all:linux":"npm run sencha:clean && npm run sencha:compile && npm run build:linux"
"repack":"npm run sencha:clean && npm run sencha:compile && npm run clean && npm run pack",
"repack:osx":"npm run sencha:clean && npm run sencha:compile && npm run clean:osx && npm run pack:macos",
"repack:win":"npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win",
"repack:win32":"npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win32",
"repack:win64":"npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win64",
"repack:linux":"npm run sencha:clean && npm run sencha:compile && npm run clean:linux && npm run pack:linux",
"repack:linux32":"npm run sencha:clean && npm run sencha:compile && npm run clean:linux && npm run pack:linux32",
"repack:linux64":"npm run sencha:clean && npm run sencha:compile && npm run clean:linux && npm run pack:linux64",