Skip to content

Commit 951e699

Browse files
committed
打包程序
1 parent f53077d commit 951e699

15 files changed

+2881
-3
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>net8.0-windows</TargetFramework>
6+
<Nullable>enable</Nullable>
7+
<UseWindowsForms>true</UseWindowsForms>
8+
<ImplicitUsings>enable</ImplicitUsings>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<Compile Update="Forms\License.cs">
13+
<SubType>Form</SubType>
14+
</Compile>
15+
<Compile Update="Resources\Lang.Designer.cs">
16+
<DesignTime>True</DesignTime>
17+
<AutoGen>True</AutoGen>
18+
<DependentUpon>Lang.resx</DependentUpon>
19+
</Compile>
20+
<Compile Update="Resources\Lang\Lang.Designer.cs">
21+
<DesignTime>True</DesignTime>
22+
<AutoGen>True</AutoGen>
23+
<DependentUpon>Lang.resx</DependentUpon>
24+
</Compile>
25+
</ItemGroup>
26+
27+
<ItemGroup>
28+
<EmbeddedResource Update="Resources\Lang.resx">
29+
<Generator>ResXFileCodeGenerator</Generator>
30+
<LastGenOutput>Lang.Designer.cs</LastGenOutput>
31+
</EmbeddedResource>
32+
<EmbeddedResource Update="Resources\Lang\Lang.resx">
33+
<Generator>ResXFileCodeGenerator</Generator>
34+
<LastGenOutput>Lang.Designer.cs</LastGenOutput>
35+
</EmbeddedResource>
36+
</ItemGroup>
37+
38+
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Compile Update="Forms\Welcome.cs">
5+
<SubType>Form</SubType>
6+
</Compile>
7+
</ItemGroup>
8+
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Runtime.Serialization;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace AppInstaller.Data
9+
{
10+
[Serializable]
11+
internal class ExecutableProgramInfo
12+
{
13+
private String name;
14+
private String version;
15+
private String installPath;
16+
private String licensePath;
17+
private String iconPath;
18+
private String mainExecutablePath;
19+
private String excludePath;
20+
private bool isCreateDesktopShortcut;
21+
private bool isAddToStartMenu;
22+
}
23+
}

AutoArchive/AppInstaller/Forms/License.Designer.cs

Lines changed: 198 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* Copyright (c) 2023-2026 BugZhang(BugLordl). All rights reserved.
3+
* Licensed under the Apache License(Version 2.0). See LICENSE file in the project root for full license information.
4+
* Version: v1.0.0
5+
* Author: BugZhang(BugLordl)
6+
* Url: https://github.com/BugLordI/EldenRingAutoArchive
7+
*/
8+
using System;
9+
using System.Collections;
10+
using System.Collections.Generic;
11+
using System.ComponentModel;
12+
using System.Data;
13+
using System.Drawing;
14+
using System.Linq;
15+
using System.Text;
16+
using System.Threading.Tasks;
17+
using System.Windows.Forms;
18+
19+
namespace AppInstaller.Forms
20+
{
21+
public partial class License : Form
22+
{
23+
private Form parent;
24+
private bool isBack;
25+
26+
public License(Form parent)
27+
{
28+
this.parent = parent;
29+
InitializeComponent();
30+
Init();
31+
}
32+
33+
private void License_FormClosing(object sender, FormClosingEventArgs e)
34+
{
35+
if (!isBack)
36+
{
37+
Environment.Exit(0);
38+
}
39+
}
40+
41+
private void Init()
42+
{
43+
this.Text = Language.LanguageManager.Instance["Title_Setup"];
44+
licenseAgreementLabel.Text = Language.LanguageManager.Instance["Label_License_Agreement"];
45+
licenseAgreementTipLabel.Text = Language.LanguageManager.Instance["Label_License_Agreement_Tip"];
46+
licenseTipLabel.Text = Language.LanguageManager.Instance["License_Tip"];
47+
agreeRadioBtn.Text = Language.LanguageManager.Instance["RadioBtn_Agree"];
48+
disagreeRadioBtn.Text = Language.LanguageManager.Instance["RadioBtn_Disagree"];
49+
preBtn.Text = Language.LanguageManager.Instance["Btn_Pre"];
50+
nextBtn.Text = Language.LanguageManager.Instance["Btn_Next"];
51+
cancelBtn.Text = Language.LanguageManager.Instance["Btn_Cancel"];
52+
}
53+
54+
private void cancelBtn_Click_1(object sender, EventArgs e)
55+
{
56+
this.Close();
57+
}
58+
59+
private void agreeRadioBtn_CheckedChanged(object sender, EventArgs e)
60+
{
61+
RadioButton radioButton = (RadioButton)sender;
62+
nextBtn.Enabled = radioButton.Checked;
63+
}
64+
65+
private void preBtn_Click(object sender, EventArgs e)
66+
{
67+
isBack = true;
68+
parent?.Show();
69+
this.Close();
70+
}
71+
72+
}
73+
}

0 commit comments

Comments
 (0)