Skip to content

Commit 471a509

Browse files
committed
优化脚本
1 parent 9fb1dac commit 471a509

File tree

5 files changed

+61
-4
lines changed

5 files changed

+61
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
* MSG - 生成多语言资源代码,支持 Android/IOS/JSON/Java/.NET
88

99
## 安装
10-
Mac/Linux 用户
10+
**Mac/Linux 用户**
1111
```sh
1212
#!/usr/bin/env sh
1313
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/excel-code-generator/code-generator/master/install.sh)"
1414
```
15-
将以上命令粘贴至终端。
15+
> 将以上命令粘贴至终端。
1616
17-
Windows 用户
17+
**Windows 用户**
1818
```ps1
1919
# PowerShell
2020
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/excel-code-generator/code-generator/master/install.ps1'))
2121
```
22-
将以上命令粘贴至PowerShell。
22+
> 将以上命令粘贴至PowerShell。
2323
2424
## 参数说明
2525
```

cg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env sh
22

3+
# Copyright 2015-2020 yanglb.com
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
317
set -e
418

519
# For more information about the cg.jar, please vist the following page:

cg.bat

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
REM Copyright 2015-2020 yanglb.com
2+
REM
3+
REM Licensed under the Apache License, Version 2.0 (the "License");
4+
REM you may not use this file except in compliance with the License.
5+
REM You may obtain a copy of the License at
6+
REM
7+
REM http://www.apache.org/licenses/LICENSE-2.0
8+
REM
9+
REM Unless required by applicable law or agreed to in writing, software
10+
REM distributed under the License is distributed on an "AS IS" BASIS,
11+
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
REM See the License for the specific language governing permissions and
13+
REM limitations under the License.
14+
115
@echo off
216

317
REM For more information about the cg.jar, please vist the following page:

install.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2015-2020 yanglb.com
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
Set-StrictMode -Version Latest
216
$ErrorActionPreference = "Stop"
317
$PSDefaultParameterValues['*:ErrorAction']='Stop'

install.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
#!/usr/bin/env sh
2+
3+
# Copyright 2015-2020 yanglb.com
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
217
set -e
318

419
# Always download the latest version

0 commit comments

Comments
 (0)