diff --git a/publish.lua b/publish.lua
index e6b8576adea7361bab806088c5a48162ba51c44e..5713d693840f962cd5f59467a65f099d05dca992 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)