Skip to content

Commit

Permalink
Windows Python 3.11.9 debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Aug 8, 2024
1 parent 2240d9d commit a9f95c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
NAGSTAMON_DIR = os.path.normpath('{0}{1}..{1}'.format(CURRENT_DIR, os.sep))
sys.path.insert(1, NAGSTAMON_DIR)

print(CURRENT_DIR)
print(NAGSTAMON_DIR)

sys.exit(0)

SCRIPTS_DIR = '{0}{1}scripts-{2}.{3}'.format(CURRENT_DIR, os.sep, sys.version_info.major, sys.version_info.minor)

# has to be imported here after NAGSTAMON_DIR was wadded to sys.path
Expand Down Expand Up @@ -145,6 +150,8 @@ def winmain():
zip_archive.write('{0}{1}{2}'.format(root, os.sep, file))

if not DEBUG:
shutil.copyfile(f'{NAGSTAMON_DIR}{os.sep}Nagstamon{os.sep}resources{os.sep}nagstamon.ico',
f'{CURRENT_DIR}{os.sep}windows')
# execute InnoSetup with many variables set by ISCC.EXE outside .iss file
result = subprocess.call([ISCC,
r'/Dsource={0}'.format(DIR_BUILD_NAGSTAMON),
Expand Down
2 changes: 1 addition & 1 deletion build/windows/nagstamon.iss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DefaultDirName={commonpf}\Nagstamon
DefaultGroupName=Nagstamon
AlwaysUsePersonalGroup=false
ShowLanguageDialog=no
SetupIconFile=..\..\Nagstamon\resources\nagstamon.ico
SetupIconFile=nagstamon.ico
UsePreviousGroup=false
OutputBaseFilename=Nagstamon-{#version}-win{#arch}_setup
UninstallDisplayIcon={app}\resources\nagstamon.ico
Expand Down

0 comments on commit a9f95c6

Please sign in to comment.