From dd50029bc55aeed7b67b4369dcc56795923f2278 Mon Sep 17 00:00:00 2001 From: wt Date: Fri, 9 Oct 2026 17:30:31 +0700 Subject: [PATCH] =?UTF-8?q?updated=20LICENSE=20and=20fix=20ci/cd=20?= =?UTF-8?q?=E2=84=963?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENT.md | 2 +- LICENSE | 21 +++++++++++++++++++++ README.md | 8 ++++++-- amo-metadata.json | 9 +++++++-- 4 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 LICENSE diff --git a/AGENT.md b/AGENT.md index fa19a02..3e4e901 100644 --- a/AGENT.md +++ b/AGENT.md @@ -30,7 +30,7 @@ This repository contains the Firefox WebExtension **Proxy Switcher Fork By WT**. - Never hand-edit or retain stale `META-INF` signatures after changing files. Build artifacts must be signed again before distribution. - Do not commit generated `web-ext-artifacts/` packages unless explicitly requested. - Keep publishing credentials only in GitHub Secrets. The release workflow expects AMO JWT credentials and Chrome Web Store OAuth credentials. -- Keep `amo-metadata.json` valid for AMO listed submissions; update its license text when the project's distribution license changes. +- Keep `amo-metadata.json` valid for AMO listed submissions; keep `version.license` consistent with the MIT `LICENSE` file. - Missing or incomplete store credentials must skip only that store's deployment. Keep package builds, release assets, and workflow artifacts available without store credentials. ## Validation diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7d1e68a --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 WT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 6e084a5..d0a673a 100644 --- a/README.md +++ b/README.md @@ -106,9 +106,9 @@ Configure these repository or environment secrets before publishing: Each store is optional: deployment runs only when its full set of credentials is present. Missing or incomplete credentials skip that store without failing the workflow or skipping the other store. Both packages are still built and attached to the release. If Firefox deployment is skipped, the release contains the unsigned Firefox XPI for development instead of a signed XPI. Invalid credentials or actual store API failures still fail the deployment step. -The stores must already contain their initial listings and required privacy information. Store review still applies; the workflow submits the update and does not bypass review. Never commit any of these credentials. +AMO can create the initial listing automatically from `amo-metadata.json` through `web-ext sign --channel listed`; manually uploading the first Firefox version is not required. Chrome Web Store requires an existing item and completed listing/privacy information. Store review still applies; the workflow submits the update and does not bypass review. Never commit any of these credentials. -The Firefox workflow passes [`amo-metadata.json`](amo-metadata.json) to AMO. It contains the required custom license, category, and listing summary for a listed submission. Update the copyright/license text if the project is distributed under a different license. +The Firefox workflow passes [`amo-metadata.json`](amo-metadata.json) to AMO. It declares the MIT license, categories, and listing metadata for a listed submission. To remove generated packages: @@ -129,3 +129,7 @@ python -m json.tool manifest.json >/dev/null ## Project version Current version: **20261009** + +## License + +Distributed under the [MIT License](LICENSE). diff --git a/amo-metadata.json b/amo-metadata.json index b270163..c737235 100644 --- a/amo-metadata.json +++ b/amo-metadata.json @@ -1,9 +1,14 @@ { "version": { - "custom_license": "Copyright (c) 2026 WT. All rights reserved." + "license": "MIT" + }, + "default_locale": "en-US", + "name": { + "en-US": "Proxy Switcher Fork By WT" }, "categories": { - "firefox": ["other"] + "firefox": ["other"], + "android": ["other"] }, "summary": { "en-US": "Route selected domains through HTTP or SOCKS5 proxy servers."