Skip to content

Commit

Permalink
fix: rename manifest_template to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Dofes committed Jan 19, 2024
1 parent 0c9d44f commit 9d72cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions scripts/after_build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ end
function pack_plugin(target,plugin_define)
import("lib.detect.find_file")

local manifest_path = find_file("manifest_template.json", os.projectdir())
local manifest_path = find_file("manifest.json", os.projectdir())
if manifest_path then
local manifest = io.readfile(manifest_path)
local bindir = path.join(os.projectdir(), "bin")
local outputdir = path.join(bindir, plugin_define.pluginName)
local targetfile = path.join(outputdir, plugin_define.pluginFile)
local pdbfile = path.join(outputdir, path.basename(plugin_define.pluginFile) .. ".pdb")
local manifestfile = path.join(outputdir, "manifest_template.json")
local manifestfile = path.join(outputdir, "manifest.json")
local oritargetfile = target:targetfile()
local oripdbfile = path.join(path.directory(oritargetfile), path.basename(oritargetfile) .. ".pdb")

Expand All @@ -106,7 +106,7 @@ function pack_plugin(target,plugin_define)
io.writefile(manifestfile,formattedmanifest)
cprint("${bright green}[Plugin Packer]: ${reset}plugin already generated to " .. outputdir)
else
cprint("${bright yellow}warn: ${reset}not found manifest_template.json in root dir!")
cprint("${bright yellow}warn: ${reset}not found manifest.json in root dir!")
end
end

Expand Down

0 comments on commit 9d72cec

Please sign in to comment.