Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
electron-printer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhuzhequan
electron-printer
Commits
5f256539
Commit
5f256539
authored
Aug 04, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
feat: 优化打包内容 See merge request
!5
parents
238a0856
5c7953f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
README.md
+3
-3
vue.config.js
+4
-5
No files found.
README.md
View file @
5f256539
...
@@ -40,11 +40,11 @@
...
@@ -40,11 +40,11 @@
## 项目打包
## 项目打包
- 打包时删除 logs 文件夹内容和 print/input 文件夹下的图片
⭕ 待完成:打包删除无效文件脚本
- ❗ 项目打包前, 务必重新安装最新依赖, 执行一次
`
npm i
`
或
`
cnpm i
`
- ❗ 项目打包前, 务必重新安装最新依赖, 执行一次
`
npm i
`
或
`
cnpm i
`
-
(
打包时删除 logs 文件夹内容和 print/input 文件夹下的图片
)
已完成:打包时剔除 logs 文件夹和 print/input 文件夹下的图片
```
shell
```
shell
# 测试环境
# 测试环境
npm run electron:build:test
npm run electron:build:test
...
...
vue.config.js
View file @
5f256539
...
@@ -100,7 +100,9 @@ module.exports = {
...
@@ -100,7 +100,9 @@ module.exports = {
extraResources
:
[
extraResources
:
[
{
{
from
:
"./print/"
,
from
:
"./print/"
,
to
:
"../print"
to
:
"../print"
,
// 打包时剔除 print/Input 下的 png 图片
filter
:
[
"**/*"
,
"!Input/**/*.png"
,
"!Input/**/*.PNG"
]
},
},
{
{
from
:
"./print4.0/"
,
from
:
"./print4.0/"
,
...
@@ -114,10 +116,7 @@ module.exports = {
...
@@ -114,10 +116,7 @@ module.exports = {
from
:
"./print600SC/"
,
from
:
"./print600SC/"
,
to
:
"../print600SC"
to
:
"../print600SC"
},
},
{
// logs 目录不打包进安装包(运行时由 log.js 自动创建)
from
:
"./logs/"
,
to
:
"../logs"
},
{
{
from
:
"./config/"
,
from
:
"./config/"
,
to
:
"../config"
to
:
"../config"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment