Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
4e8dcd77
Commit
4e8dcd77
authored
Jul 07, 2023
by
罗显健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、打包时增加Image目录。2、打包后的文件,放入子目录Package。
parent
d7b182c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
FrmMain.cs
Ftt.PatchPack/FrmMain.cs
+10
-2
Project.cs
Ftt.PatchPack/Project.cs
+8
-1
No files found.
Ftt.PatchPack/FrmMain.cs
View file @
4e8dcd77
using
System
;
using
System.Collections.Generic
;
using
System.Drawing
;
using
System.IO
;
using
System.Text
;
using
System.Windows.Forms
;
...
...
@@ -10,8 +11,14 @@ namespace Ftt.PatchPack
{
private
const
int
WIDTH_LOG_AREA
=
360
;
Dictionary
<
string
,
Project
>
projects
=
new
Dictionary
<
string
,
Project
>();
/// <summary>
/// 打包文件存放目录
/// </summary>
public
string
PackageFileDirectory
=
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"Package"
);
public
FrmMain
()
{
...
...
@@ -125,7 +132,7 @@ namespace Ftt.PatchPack
try
{
var
files
=
project
.
GetAllPathFiles
();
FilePack
patch
=
new
FilePack
(
AppDomain
.
CurrentDomain
.
Bas
eDirectory
,
project
.
Name
,
files
,
ckbDelHisPack
.
Checked
);
FilePack
patch
=
new
FilePack
(
PackageFil
eDirectory
,
project
.
Name
,
files
,
ckbDelHisPack
.
Checked
);
patch
.
Pack
();
item
.
Checked
=
false
;
...
...
@@ -163,7 +170,8 @@ namespace Ftt.PatchPack
/// <param name="e"></param>
private
void
btnOpenDirectory_Click
(
object
sender
,
EventArgs
e
)
{
System
.
Diagnostics
.
Process
.
Start
(
AppDomain
.
CurrentDomain
.
BaseDirectory
);
if
(
Directory
.
Exists
(
PackageFileDirectory
))
System
.
Diagnostics
.
Process
.
Start
(
PackageFileDirectory
);
}
/// <summary>
...
...
Ftt.PatchPack/Project.cs
View file @
4e8dcd77
...
...
@@ -157,7 +157,7 @@ namespace Ftt.PatchPack
#
endregion
#
region
ConfigFile
文件夹下
xml
文件
#
region
ConfigFile
文件夹下
xml
文件
,
image
目录下新增的图片资源
var
xmlPath
=
Path
.
Combine
(
AbsoluteRootDirectory
,
RelativeAppFilePath
,
"ConfigFile"
);
if
(
System
.
IO
.
Directory
.
Exists
(
xmlPath
))
...
...
@@ -165,6 +165,13 @@ namespace Ftt.PatchPack
valid
.
AddRange
(
GetValidPatchFile
(
xmlPath
,
"*.xml"
,
SearchOption
.
TopDirectoryOnly
,
xmlPath
,
$"
{
ExeName
}
\\ConfigFile"
,
PatchTimeFrame_Xml
));
}
var
imgPath
=
Path
.
Combine
(
AbsoluteRootDirectory
,
RelativeAppFilePath
,
"Image"
);
if
(
System
.
IO
.
Directory
.
Exists
(
imgPath
))
{
valid
.
AddRange
(
GetValidPatchFile
(
imgPath
,
"*.*"
,
SearchOption
.
TopDirectoryOnly
,
imgPath
,
$"
{
ExeName
}
\\Image"
,
PatchTimeFrame_Xml
));
}
#
endregion
...
...
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