Skip to content
Snippets Groups Projects
Commit 62eeafc4 authored by sumneko's avatar sumneko
Browse files

update publish script

parent 76a70da0
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment