From 62eeafc43d70e546e8092b0ab45305d460dc03ba Mon Sep 17 00:00:00 2001
From: sumneko <sumneko@hotmail.com>
Date: Fri, 1 Oct 2021 17:34:10 +0800
Subject: [PATCH] update publish script

---
 publish.lua | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/publish.lua b/publish.lua
index e6b8576..5713d69 100644
--- a/publish.lua
+++ b/publish.lua
@@ -4,7 +4,6 @@ if rootPath == '' then
     rootPath = './'
 end
 loadfile(rootPath .. 'server/platform.lua')('script')
-require 'bee'
 local fs         = require 'bee.filesystem'
 local subprocess = require 'bee.subprocess'
 local platform   = require 'bee.platform'
@@ -132,7 +131,7 @@ local version = loadPackage()
 print('版本号为:' .. version)
 
 print('复制 readme ...')
-fs.copy_file(ROOT / 'server' / 'changelog.md', ROOT / 'changelog.md', true)
+fs.copy_file(ROOT / 'server' / 'changelog.md', ROOT / 'changelog.md', fs.copy_options.overwrite_existing)
 fsu.saveFile(ROOT / 'README.md', fsu.loadFile(ROOT / 'server' / 'README.md'):gsub('%!%[build%][^\r\n]*', ''))
 
 local out = createDirectory(version)
-- 
GitLab