Skip to content

Commit 73fe956

Browse files
committed
v1.1
1 parent 4da7809 commit 73fe956

17 files changed

+1363
-726
lines changed

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build and Publish
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
release:
7+
types: [released]
8+
9+
jobs:
10+
build-macos:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up Python 3
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install pyinstaller
22+
pip install requests
23+
pip install pyside6
24+
- name: Build macOS executable
25+
run: pyinstaller --onefile --noconsole PyCalc-SE.py
26+
- name: Upload macOS artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: macos-executable
30+
path: dist/PyCalc-SE
31+
32+
build-linux:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Set up Python 3
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: '3.x'
40+
- name: Install dependencies
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install pyinstaller
44+
pip install requests
45+
pip install pyside6
46+
- name: Build Linux executable
47+
run: pyinstaller --onefile --noconsole PyCalc-SE.py
48+
- name: Upload Linux artifact
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: linux-executable
52+
path: dist/PyCalc-SE

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build/
2+
dist/
3+
*.spec.*
4+
Output/
5+
PyCalc-SE.spec

Inter.ttf

335 KB
Binary file not shown.

PyCalc-GUI.ico

184 KB
Binary file not shown.

PyCalc-GUI.iss

Lines changed: 84 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,97 @@
1+
; Script generated by the Inno Setup Script Wizard.
2+
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3+
4+
#define MyAppName "PyCalc-GUI"
5+
#define MyAppVersion "1.1"
6+
#define MyAppPublisher "Chill-Astro"
7+
#define MyAppURL "https://github.com/Chill-Astro/PyCalc-GUI"
8+
#define MyAppExeName "PyCalc-GUI.exe"
9+
#define MyAppAssocName MyAppName + " File"
10+
#define MyAppAssocExt ".myp"
11+
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
12+
113
[Setup]
2-
AppName=PyCalc GUI
3-
AppVerName=PyCalc GUI v1.0
4-
AppPublisher=Chill-Astro
5-
DefaultDirName={autopf}\Chill-Astro\PyCalc-GUI
6-
DefaultGroupName=Chill-Astro
7-
UninstallDisplayIcon={app}\PycalcGUI.exe
8-
Compression=lzma2
9-
SolidCompression=yes
14+
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
15+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
16+
AppId={{633C1E5F-90A3-492B-933F-84ECEE95A462}
17+
AppName={#MyAppName}
18+
AppVersion={#MyAppVersion}
19+
AppVerName={#MyAppName}
20+
AppPublisher={#MyAppPublisher}
21+
AppPublisherURL={#MyAppURL}
22+
AppSupportURL={#MyAppURL}
23+
AppUpdatesURL={#MyAppURL}
24+
DefaultDirName={autopf}\Chill-Astro\{#MyAppName}
25+
UninstallDisplayIcon={app}\{#MyAppExeName}
26+
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
27+
; on anything but x64 and Windows 11 on Arm.
1028
ArchitecturesAllowed=x64compatible
29+
; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
30+
; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
31+
; meaning it should use the native 64-bit Program Files directory and
32+
; the 64-bit view of the registry.
1133
ArchitecturesInstallIn64BitMode=x64compatible
12-
OutputDir=Output
13-
OutputBaseFilename=PyCalcGUI-Setup
34+
ChangesAssociations=yes
35+
DisableProgramGroupPage=yes
36+
; Uncomment the following line to run in non administrative install mode (install for current user only).
37+
;PrivilegesRequired=lowest
38+
PrivilegesRequiredOverridesAllowed=dialog
39+
OutputBaseFilename=PyCalc-GUI-Setup
40+
SolidCompression=yes
1441
WizardStyle=modern
42+
DisableWelcomePage=no
43+
1544

1645
[Languages]
1746
Name: "english"; MessagesFile: "compiler:Default.isl"
47+
Name: "arabic"; MessagesFile: "compiler:Languages\Arabic.isl"
48+
Name: "armenian"; MessagesFile: "compiler:Languages\Armenian.isl"
49+
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
50+
Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"
51+
Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl"
52+
Name: "corsican"; MessagesFile: "compiler:Languages\Corsican.isl"
53+
Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
54+
Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl"
55+
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
56+
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
57+
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
58+
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
59+
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
60+
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
61+
Name: "icelandic"; MessagesFile: "compiler:Languages\Icelandic.isl"
62+
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
63+
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
64+
Name: "korean"; MessagesFile: "compiler:Languages\Korean.isl"
65+
Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"
66+
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
67+
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
68+
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
69+
Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
70+
Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
71+
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
72+
Name: "swedish"; MessagesFile: "compiler:Languages\Swedish.isl"
73+
Name: "tamil"; MessagesFile: "compiler:Languages\Tamil.isl"
74+
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
75+
Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"
1876

1977
[Tasks]
2078
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
2179

2280
[Files]
23-
Source: "C:\Users\Master\Chill-Astro\PyCalc-GUI\*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs
81+
Source: "C:\Users\Master\Chill-Astro\PyCalc-GUI\dist\*"; DestDir: "{app}"; Flags: ignoreversion
82+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
83+
84+
[Registry]
85+
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
86+
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
87+
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
88+
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
89+
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueName: "Path"; ValueType: expandsz; ValueData: "{olddata};{app}";
90+
2491
[Icons]
25-
Name: "{group}\PyCalc GUI"; Filename: "{app}\PycalcGUI.exe"; IconFilename: "{app}\Pycalc.ico"
26-
Name: "{commondesktop}\PyCalc GUI"; Filename: "{app}\PycalcGUI.exe"; IconFilename: "{app}\Pycalc.ico"; Tasks: desktopicon
92+
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
93+
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
94+
95+
[Run]
96+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
97+

0 commit comments

Comments
 (0)