@winner-fed/winner-deploy 3.1.4 → 3.1.5

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.4",
3
+ "version": "3.1.5",
4
4
  "description": "Generate a publication deployed by the See platform",
5
5
  "keywords": [
6
6
  "winner",
@@ -86,9 +86,7 @@ exports.genSeePackage = function genSeePackage (seePackageName, options, handler
86
86
  description
87
87
  }))
88
88
  }
89
-
90
-
91
-
89
+
92
90
  if (handler) {
93
91
  handler((cb) => {
94
92
  genZipPackage(seePackageName, tmp, () => {
@@ -157,7 +157,8 @@ exports.generateSeePackageZip = function generateSeePackageZip ({
157
157
  configName,
158
158
  template: (templateFunc)(),
159
159
  variables: (variablesFunc)(),
160
- description
160
+ description,
161
+ scriptsType
161
162
  },
162
163
  done => {
163
164
  if (scriptsType === 'python') {
@@ -6,7 +6,7 @@ if [ "{{type}}" = "subsystem" ]; then
6
6
  # 子系统执行逻辑
7
7
  # 程序执行的当前路径,除了tmp文件夹,别的都删除,然后将 tmp/source 的所有文件及文件夹都拷贝到 workspace 目录下
8
8
  ls -I tmp | xargs rm -rf
9
- \cp -rf tmp/source/* ${workspace}/../
9
+ \cp -rf tmp/source/* ${workspace}/
10
10
  else
11
11
  # 主系统执行逻辑
12
12
  if [ -d "${workspace}/{{name}}" ]; then