更新打包脚本

This commit is contained in:
锦恢 2025-01-02 21:01:19 +08:00
parent 9166852c49
commit 4d9a7c199b
2 changed files with 6 additions and 3 deletions

@ -1 +0,0 @@
Subproject commit f148e9a24fbafd144c3961b36ebd6c3266335beb

View File

@ -64,7 +64,11 @@ def modify_vsix():
os.remove(dist_path) os.remove(dist_path)
# webview # webview
print("")
copy_dir('./resources/dide-netlist/view', os.path.join(extract_folder, 'extension', 'resources', 'dide-netlist', 'view')) copy_dir('./resources/dide-netlist/view', os.path.join(extract_folder, 'extension', 'resources', 'dide-netlist', 'view'))
copy_dir('./resources/dide-netlist/static', os.path.join(extract_folder, 'extension', 'resources', 'dide-viewer', 'static'))
print("")
copy_dir('./resources/dide-viewer/view', os.path.join(extract_folder, 'extension', 'resources', 'dide-viewer', 'view')) copy_dir('./resources/dide-viewer/view', os.path.join(extract_folder, 'extension', 'resources', 'dide-viewer', 'view'))
# remake # remake
@ -97,8 +101,8 @@ pipe.add_command('compile typescript', 'tsc -p ./ --outDir out-js')
pipe.add_command('webpack', 'webpack --mode production') pipe.add_command('webpack', 'webpack --mode production')
pipe.add_command('make vsix installer', 'vsce package') pipe.add_command('make vsix installer', 'vsce package')
pipe.add_command('modify vsix installer', lambda : modify_vsix()) pipe.add_command('modify vsix installer', lambda : modify_vsix())
pipe.add_command('remove out-js', lambda : remove_folder('out-js')) # pipe.add_command('remove out-js', lambda : remove_folder('out-js'))
pipe.add_command('remove out', lambda : remove_folder('out')) # pipe.add_command('remove out', lambda : remove_folder('out'))
pipe.add_command('install', lambda : install_extension()) pipe.add_command('install', lambda : install_extension())
pipe.run() pipe.run()