Skip to content

Commit 446662e

Browse files
committed
1.6
1 parent 7611052 commit 446662e

13 files changed

Lines changed: 179 additions & 5 deletions

CompileForm.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ private void DoTheDeed(string tempdir)
113113
MessageBox.Show("Error compiling: Please check log", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
114114
} else
115115
{
116+
if (RuntimeConfiguration.AutomatedBuild)
117+
{
118+
this.Close();
119+
}
116120
MessageBox.Show("Completed successfully!","Report",MessageBoxButtons.OK,MessageBoxIcon.Information);
117121
}
118122
}

Form1.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,27 @@ private void Form1_Load(object sender, EventArgs e)
5353
{
5454
this.MaximizeBox = false;
5555
this.textBox3.Text = Constants.DistPath;
56-
56+
if (RuntimeConfiguration.AutomatedBuild)
57+
{
58+
toEXEToolStripMenuItem_Click(new { }, new EventArgs());//Blank items for trickery
59+
Environment.Exit(0);
60+
}
5761
}
5862

5963
private void quitToolStripMenuItem_Click(object sender, EventArgs e)
6064
{
65+
if (pinfo.NeedsSaving(this))
66+
{
67+
var d = MessageBox.Show("Unsaved project. Would you like to save?", "Question", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);
68+
if (d == DialogResult.Yes)
69+
{
70+
File.WriteAllText(pinfo.FullPath, new PyinstallerHelperProject(this).OutToXML());
71+
}
72+
else if (d == DialogResult.Cancel)
73+
{
74+
return;
75+
}
76+
}
6177
Environment.Exit(0);
6278
}
6379

Program.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,21 @@ static void Main(string[] args)
3333
if (args.Length > 0)
3434
{
3535
Routines.main.LoadFile(args[0]);
36+
RuntimeConfiguration.InFile = args[0];
37+
}
38+
if (args.Contains("-a"))
39+
{
40+
RuntimeConfiguration.AutomatedBuild = true;
3641
}
3742
Application.Run(Routines.main);
3843
}
3944
}
45+
46+
public static class RuntimeConfiguration
47+
{
48+
public static bool AutomatedBuild = false;
49+
public static string InFile;
50+
}
4051
public static class Routines
4152
{
4253
public static Form1 main;

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.5.1.0")]
36-
[assembly: AssemblyFileVersion("1.5.1.0")]
35+
[assembly: AssemblyVersion("1.6.0.0")]
36+
[assembly: AssemblyFileVersion("1.6.0.0")]

docs/collapsible.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
var coll = document.getElementsByClassName("collapsible");
2+
var i;
3+
4+
for (i = 0; i < coll.length; i++) {
5+
coll[i].addEventListener("click", function() {
6+
this.classList.toggle("active");
7+
var content = this.nextElementSibling;
8+
if (content.style.maxHeight){
9+
content.style.maxHeight = null;
10+
} else {
11+
content.style.maxHeight = content.scrollHeight + "px";
12+
}
13+
});
14+
}

docs/index.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,29 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Pyinstaller Helper Help</title>
7+
<link rel="stylesheet" href="style.css">
78
</head>
8-
<body style="font-family: Helvetica;">
9-
<h1>Help coming soon... Check in a later update!</h1>
9+
<body>
10+
<h1>Pyinstaller Helper Documentation</h1>
11+
<p style="position: fixed;bottom: 10px;left: 0px;">For versions 1.6 or newer. This software is (c) 2024 Enderbyte Programs, some rights reserved.</p>
12+
<button class="collapsible" type="button">Command Line Arguments & Automation</button>
13+
<div class="content">
14+
<h2>Command Line Arguments</h2>
15+
<h3>Uses</h3>
16+
<ul>
17+
<li>
18+
<code>PyinstallerHelper.exe</code>
19+
Run normally with full interaction and UI
20+
</li>
21+
<li><code>PyinstallerHelper.exe &lt;file&gt;</code> Run normally with full interaction and UI, loading a file</li>
22+
<li><code>PyinstallerHelper.exe &lt;file&gt; -a</code> Build a file automatedly, showing the progress window but with no interaction required.</li>
23+
</ul>
24+
</div>
25+
26+
<h2>Sorry, more documentation to come.</h2>
27+
28+
<script src="collapsible.js">
29+
30+
</script>
1031
</body>
1132
</html>

docs/style.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
h1, h2 {
2+
text-align: center;
3+
}
4+
body {
5+
font-family: Helvetica;
6+
background-color: rgb(130, 207, 233);
7+
}
8+
.collapsible {
9+
background-color: #eee;
10+
color: #444;
11+
cursor: pointer;
12+
padding: 18px;
13+
width: 100%;
14+
border: none;
15+
text-align: left;
16+
outline: none;
17+
font-size: 15px;
18+
}
19+
20+
.active, .collapsible:hover {
21+
background-color: #448;
22+
color: white;
23+
}
24+
25+
/* Style the collapsible content. Note: hidden by default */
26+
.content {
27+
padding: 0 18px;
28+
background-color: #eee;
29+
max-height: 0;
30+
overflow: hidden;
31+
transition: max-height 0.2s ease-out;
32+
}
33+
34+
.collapsible:after {
35+
content: '\02795'; /* Unicode character for "plus" sign (+) */
36+
font-size: 13px;
37+
color: white;
38+
float: right;
39+
margin-left: 5px;
40+
}
41+
42+
.active:after {
43+
content: "\2796"; /* Unicode character for "minus" sign (-) */
44+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Created using wingetcreate 1.6.1.0
2+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.6.0.schema.json
3+
4+
PackageIdentifier: EnderbytePrograms.PyinstallerHelper
5+
PackageVersion: 1.5.1
6+
InstallerType: inno
7+
Installers:
8+
- Architecture: x86
9+
InstallerUrl: https://github.com/Enderbyte-Programs/PyinstallerHelper/releases/download/v1.5.1/pyinstallerhelper-1.5.1-setup.exe
10+
InstallerSha256: EBE26A5B95DFF886C2A8210D75A18ABA6226DBA1B80FC8F2E8EA97B0A778A66D
11+
ManifestType: installer
12+
ManifestVersion: 1.6.0
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Created using wingetcreate 1.6.1.0
2+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.6.0.schema.json
3+
4+
PackageIdentifier: EnderbytePrograms.PyinstallerHelper
5+
PackageVersion: 1.5.1
6+
PackageLocale: en-US
7+
Publisher: Enderbyte Programs
8+
PackageName: Pyinstaller Helper
9+
License: MIT License
10+
ShortDescription: A GUI tool to compile Python programs to EXE using Pyinstaller
11+
ManifestType: defaultLocale
12+
ManifestVersion: 1.6.0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Created using wingetcreate 1.6.1.0
2+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.6.0.schema.json
3+
4+
PackageIdentifier: EnderbytePrograms.PyinstallerHelper
5+
PackageVersion: 1.5.1
6+
DefaultLocale: en-US
7+
ManifestType: version
8+
ManifestVersion: 1.6.0

0 commit comments

Comments
 (0)