Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove the support for region CN #360

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
* text=auto
lib/index.ts text eol=lf
lib/index.ts-cn text eol=lf
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# openupm-cli

*Read this in other languages: [English](README.md), [简体中文](README.zh-cn.md).*

![npm](https://img.shields.io/npm/v/openupm-cli) ![NPM](https://img.shields.io/npm/l/openupm-cli) ![npm](https://img.shields.io/npm/dm/openupm-cli)

The command-line tool to maintain the Unity manifest file for 3rd-party upm registries, offering a similar but lighter experience like *npm* or *yarn* for Node.js.
Expand All @@ -13,7 +11,6 @@ The tool is designed to work with [the OpenUPM registry](https://openupm.com), b
- [Installation](#installation)
- [Windows platform troubleshooting](#windows-platform-troubleshooting)
- [Cannot find module 'node:net'](#cannot-find-module-nodenet)
- [China region](#china-region)
- [Commands](#commands)
- [Add packages](#add-packages)
- [Remove packages](#remove-packages)
Expand Down Expand Up @@ -77,19 +74,6 @@ Error: Cannot find module 'node:net'

Please install [Node.js 18 or above](https://nodejs.org/en/download/).

## China region

To use the region CN, replace the command `openupm` with `openupm-cn` or add the option `--cn`. Then the CLI will query both the Unity China region registry (`https://packages.unity.cn`) and the OpenUPM China region registry (`https://package.openupm.cn`).

```
# Region us
openupm view com.littlebigfun.addressable-importer

# Region cn
openupm view com.littlebigfun.addressable-importer --cn
openupm-cn view com.littlebigfun.addressable-importer
```

## Commands

### Add packages
Expand Down
291 changes: 0 additions & 291 deletions README.zh-cn.md

This file was deleted.

3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
},
"bin": {
"openupm": "lib/index.js",
"openupm-cli": "lib/index.js",
"openupm-cn": "lib/index-cn.js"
"openupm-cli": "lib/index.js"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -88,4 +87,4 @@
"volta": {
"node": "18.20.2"
}
}
}
1 change: 0 additions & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ const program = createCommand()
.option("-c, --chdir <path>", "change the working directory")
.option("-r, --registry <url>", "specify registry url", mustBeRegistryUrl)
.option("-v, --verbose", "output extra debugging")
.option("--cn", "use the China region registry")
.option("--system-user", "auth for Windows system user")
.option("--wsl", "auth for Windows when using WSL")
.option("--no-upstream", "don't use upstream unity registry")
Expand Down
4 changes: 0 additions & 4 deletions src/index-cn.ts

This file was deleted.

Loading
Loading