Revert "single executable support"

* WASM module (argon2-browser) does not work properly.

Revert "README: add info about single-executable"

This reverts commit 55343a1353.

Revert "CI: separate artifacts"

This reverts commit 28ba0efd2d.

Revert "CI: build pkg executables"

This reverts commit 482fde49b1.

Revert "pkg: initial configuration"

This reverts commit 6849e9c55b.
This commit is contained in:
Jesse Chan
2020-09-21 18:48:03 +08:00
parent 9d7ea5f037
commit 970b2dd274
3 changed files with 0 additions and 55 deletions

View File

@@ -34,48 +34,3 @@ jobs:
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
pkg:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: sudo npm install -g pkg
- name: Tag rolling release
run: |
npm version --no-git-tag-version 0.0.0-master.`git rev-parse --short HEAD`
- name: Build executables
run: |
npm run build-pkg
- name: 'Upload executable: Linux'
uses: actions/upload-artifact@v2
with:
name: flood-linux
path: flood-linux
- name: 'Upload executable: MacOS'
uses: actions/upload-artifact@v2
with:
name: flood-macos
path: flood-macos
- name: 'Upload executable: Windows'
uses: actions/upload-artifact@v2
with:
name: flood-win
path: flood-win.exe

View File

@@ -23,8 +23,6 @@ Check out the [Wiki](https://github.com/jesec/flood/wiki) for more information.
- For Windows, try [this guide](https://rtwi.jmk.hu/wiki/rTorrentOnWindows).
1. Install [NodeJS](https://nodejs.org/) version `Current` (you might want to manage different Node versions with [nodenv](https://github.com/nodenv/nodenv) or [nvm](https://github.com/creationix/nvm) or [n](https://github.com/tj/n)). Flood tracks latest NodeJS release and does NOT provide support to legacy NodeJS versions.
**EXPERIMENTAL**: You can download a single-executable rolling build of Flood from [Github Actions](https://github.com/jesec/flood/actions?query=workflow%3A%22Publish+rolling+build%22). It bundles `NodeJS` and supports `Linux`, `MacOS` or `Windows`.
### Installation
`sudo npm i -g flood` or `npx flood`

View File

@@ -13,17 +13,9 @@
"bin": {
"flood": "./dist/index.js"
},
"pkg": {
"assets": [
"dist/assets/**/*",
"dist/geoip-country.dat",
"dist/geoip-country6.dat"
]
},
"scripts": {
"build": "npm run build-assets && npm run build-ts",
"build-assets": "node client/scripts/build.js",
"build-pkg": "rm -rf dist && npm run build && pkg .",
"build-ts": "rm -f node_modules/argon2-browser/dist/*.wasm; ncc build server/bin/start.ts -m -t; rm -rf dist/data",
"build-docs": "jsdoc -c ./.jsdoc.json",
"build-i18n": "formatjs compile --ast --format simple client/src/javascript/i18n/strings.json --out-file client/src/javascript/i18n/strings.compiled.json && formatjs compile-folder --ast --format simple client/src/javascript/i18n/translations client/src/javascript/i18n/compiled",