Skip to content

Commit 62eeafc

Browse files
committed
update publish script
1 parent 76a70da commit 62eeafc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

publish.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ if rootPath == '' then
44
rootPath = './'
55
end
66
loadfile(rootPath .. 'server/platform.lua')('script')
7-
require 'bee'
87
local fs = require 'bee.filesystem'
98
local subprocess = require 'bee.subprocess'
109
local platform = require 'bee.platform'
@@ -132,7 +131,7 @@ local version = loadPackage()
132131
print('版本号为:' .. version)
133132

134133
print('复制 readme ...')
135-
fs.copy_file(ROOT / 'server' / 'changelog.md', ROOT / 'changelog.md', true)
134+
fs.copy_file(ROOT / 'server' / 'changelog.md', ROOT / 'changelog.md', fs.copy_options.overwrite_existing)
136135
fsu.saveFile(ROOT / 'README.md', fsu.loadFile(ROOT / 'server' / 'README.md'):gsub('%!%[build%][^\r\n]*', ''))
137136

138137
local out = createDirectory(version)

0 commit comments

Comments
 (0)