chore(manager): 📄 re-generate dependency licenses (#1305)

Our [`licenses.txt`](508a5a2af5/src/server_manager/web_app/ui_components/licenses/licenses.txt) file for Outline Manager is not correct, it is just a simple duplication of the [`README.md`](508a5a2af5/src/server_manager/README.md). In this PR, I re-generate the `licenses.txt` file with all dependencies and update the steps in order to correctly generate it.
This commit is contained in:
J. Yi 2023-03-09 00:05:02 -05:00 committed by GitHub
parent 508a5a2af5
commit 494389944e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11163 additions and 45 deletions

View file

@ -4,12 +4,18 @@
- `cd` to the root of your clone of this repo
- Ensure `node_modules` is up to date and only include dependencies of the Electron app by running `npm ci && npm run action server_manager/web_app/build`
- Copy `LICENSE` and the entire `node_modules` folder to `./src/server_manager/LICENSE` and `./src/server_manager/node_modules`
- `cd src/server_manager`
- `npx generate-license-file --input package.json --output web_app/ui_components/licenses/licenses.txt`
- `cd web_app/ui_components/licenses`
- `cat db-ip_license.txt >> licenses.txt`
Done!
Done! (remember to delete the `./src/server_manager/node_modules` folder)
> Note that the third step of copying `LICENSE` and `node_modules` is required because:
>
> - `generate-license-file` iterates all dependencies under `node_modules` folder in the current directory
> - `generate-license-file` will try to find a `LICENSE` file in the current directory, if not found, it will use `README.md` instead which is not what we want
## Check

File diff suppressed because it is too large Load diff