修改静态文件打包过程中的 bug
This commit is contained in:
@@ -70,7 +70,10 @@
|
|||||||
appDir: "../",
|
appDir: "../",
|
||||||
dir: "../../release/",
|
dir: "../../release/",
|
||||||
modules: [
|
modules: [
|
||||||
{
|
{
|
||||||
|
name: "bootstrap",
|
||||||
|
},
|
||||||
|
{
|
||||||
name: "addProblem_0_pack"
|
name: "addProblem_0_pack"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,9 +9,11 @@ template_release_path = "template/release/"
|
|||||||
|
|
||||||
static_src_path = "static/src/"
|
static_src_path = "static/src/"
|
||||||
static_release_path = "static/release/"
|
static_release_path = "static/release/"
|
||||||
|
try:
|
||||||
# 删除模板的 release 文件夹
|
# 删除模板的 release 文件夹
|
||||||
shutil.rmtree(template_release_path)
|
shutil.rmtree(template_release_path)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
# 复制一份模板文件夹到 release
|
# 复制一份模板文件夹到 release
|
||||||
shutil.copytree(template_src_path, template_release_path)
|
shutil.copytree(template_src_path, template_release_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user