From 92a8a836b7b85f5575aec4626561f6d0fec1fde4 Mon Sep 17 00:00:00 2001
From: liujiangnan <695541723@qq.com>
Date: Wed, 9 Sep 2020 15:01:23 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
form/.gitignore | 1 -
form/publish/.keep | 0
package.json | 16 ++++++++++++++++
publish/build.cmd | 2 +-
4 files changed, 17 insertions(+), 2 deletions(-)
create mode 100644 form/publish/.keep
create mode 100644 package.json
diff --git a/form/.gitignore b/form/.gitignore
index 6b772c3..86d943a 100644
--- a/form/.gitignore
+++ b/form/.gitignore
@@ -9,7 +9,6 @@
# dependencies
/node_modules
-/publish
# profiling files
chrome-profiler-events*.json
diff --git a/form/publish/.keep b/form/publish/.keep
new file mode 100644
index 0000000..e69de29
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..3ea4ce5
--- /dev/null
+++ b/package.json
@@ -0,0 +1,16 @@
+{
+ "name": "publish",
+ "version": "1.0.0",
+ "description": "",
+ "main": "build.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "build": "sh ./publish/build.sh",
+ "win": "cd publish && build.cmd"
+ },
+ "author": "",
+ "license": "ISC",
+ "dependencies": {
+ "compressing": "^1.5.0"
+ }
+}
diff --git a/publish/build.cmd b/publish/build.cmd
index 5971677..359cf71 100644
--- a/publish/build.cmd
+++ b/publish/build.cmd
@@ -1,2 +1,2 @@
-cd ../form & npm run publish & cd ../play & CocosCreator.exe --path "./" --build "configPath=../publish/buildConfig.json" --force & cd ../publish & node build.js
+cd ../form & npm install & npm run publish & cd ../play & CocosCreator.exe --path "./" --build "platform=web-desktop;debug=true" --force & cd ../publish & node build.js
pause
--
2.21.0