4 Commits

Author SHA1 Message Date
5efae02594 Fix argument 2023-04-12 04:08:26 +02:00
1eed4ed198 Update workflow 2023-04-12 03:58:47 +02:00
922765c7eb Merge branch 'relative-path' 2023-04-12 03:55:11 +02:00
9a449b01fa Installer: add to start 2023-04-12 03:46:46 +02:00
3 changed files with 7 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ on:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read

View File

@@ -7,7 +7,8 @@ AppPublisherURL=https://github.com/infeeeee/dyn2py
AppSupportURL=https://github.com/infeeeee/dyn2py/issues
AppUpdatesURL=https://github.com/infeeeee/dyn2py/releases/latest
DefaultDirName={autopf}\dyn2py
DisableProgramGroupPage=yes
DisableProgramGroupPage=auto
DefaultGroupName=dyn2py
LicenseFile=LICENSE
PrivilegesRequired=admin
OutputBaseFilename=dyn2py-installer
@@ -22,6 +23,9 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "dyn2py.exe"; DestDir: "{app}"; Flags: ignoreversion
[Icons]
Name: "{group}\dyn2py (cmd)"; Filename: "{cmd}"; WorkingDir: "{userdocs}"; Parameters: "/k dyn2py"
Name: "{group}\dyn2py (powershell)"; Filename: "powershell"; WorkingDir: "{userdocs}"; Parameters: "-noexit -command dyn2py"
[Code]
const EnvironmentKey = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment';

View File

@@ -137,7 +137,7 @@ class File():
# Create backup:
if not options.dry_run and self.filepath.exists() and options.backup:
backup_filename = sanitize_filename(
f"{self.basename}_{self.mtimeiso}{self.extension}")
filename=f"{self.basename}_{self.mtimeiso}{self.extension}")
backup_path = self.dirpath.joinpath(backup_filename)
logging.info(f"Creating backup to {backup_path}")
self.filepath.rename(backup_path)