@winner-fed/winner-deploy 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winner-fed/winner-deploy",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Generate a publication deployed by the See platform",
5
5
  "keywords": [
6
6
  "winner",
Binary file
@@ -29,7 +29,6 @@
29
29
  <variables describe="集群基本参数">
30
30
  <field name="user" label="安装用户" type="input">root</field>
31
31
  <field name="workspace" label="前端安装目录" type="input" tooltip="IAR上存放前端根目录">/usr/local/nginx/html</field>
32
- <field name="isSubsystem" label="是否是子系统" type="select" options="false:主系统;true:子系统" required="true" tooltip="默认主系统">false</field>
33
32
  ${ variables }
34
33
  </variables>
35
34
  <config path="./${ name }/${ configFileName }.js" encoding="UTF-8"/>
@@ -2,14 +2,16 @@
2
2
  #[install]
3
3
  # chmod -R 755 .
4
4
  # 拷贝前端工程文件到运行目录
5
- if [ "${isSubsystem}" = "true" ]; then
5
+ if [ "{{type}}" = "subsystem" ]; then
6
6
  # 子系统执行逻辑
7
+ # 删除 tmp 的文件
7
8
  ls -I tmp | xargs rm -rf
8
9
  \cp -rf tmp/source/* ${workspace}/../
9
10
  else
10
11
  # 主系统执行逻辑
11
12
  if [ -d "${workspace}/{{name}}" ]; then
12
13
  cd "${workspace}/{{name}}"
14
+ # 查看文件名带有 "manifest." 文件,然后进行删除
13
15
  ls | grep "manifest." | xargs rm -rf
14
16
  rm -rf frame common static sysconfig.js index.html
15
17
  cd -
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
  #[uninstall]
3
3
  # 删除前端工程文件
4
- if [ "${isSubsystem}" = "true" ]; then
4
+ if [ "{{type}}" = "subsystem" ]; then
5
5
  # 子系统执行逻辑
6
6
  if [ -d "${workspace}" ]; then
7
7
  rm -rf ${workspace}