mirror of
https://github.com/infeeeee/dyn2py
synced 2025-12-16 22:16:18 +01:00
Compare commits
4 Commits
relative-p
...
5efae02594
| Author | SHA1 | Date | |
|---|---|---|---|
| 5efae02594 | |||
| 1eed4ed198 | |||
| 922765c7eb | |||
| 9a449b01fa |
1
.github/workflows/unittests.yml
vendored
1
.github/workflows/unittests.yml
vendored
@@ -5,6 +5,7 @@ on:
|
|||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ AppPublisherURL=https://github.com/infeeeee/dyn2py
|
|||||||
AppSupportURL=https://github.com/infeeeee/dyn2py/issues
|
AppSupportURL=https://github.com/infeeeee/dyn2py/issues
|
||||||
AppUpdatesURL=https://github.com/infeeeee/dyn2py/releases/latest
|
AppUpdatesURL=https://github.com/infeeeee/dyn2py/releases/latest
|
||||||
DefaultDirName={autopf}\dyn2py
|
DefaultDirName={autopf}\dyn2py
|
||||||
DisableProgramGroupPage=yes
|
DisableProgramGroupPage=auto
|
||||||
|
DefaultGroupName=dyn2py
|
||||||
LicenseFile=LICENSE
|
LicenseFile=LICENSE
|
||||||
PrivilegesRequired=admin
|
PrivilegesRequired=admin
|
||||||
OutputBaseFilename=dyn2py-installer
|
OutputBaseFilename=dyn2py-installer
|
||||||
@@ -22,6 +23,9 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
|
|||||||
[Files]
|
[Files]
|
||||||
Source: "dyn2py.exe"; DestDir: "{app}"; Flags: ignoreversion
|
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]
|
[Code]
|
||||||
const EnvironmentKey = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment';
|
const EnvironmentKey = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment';
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ class File():
|
|||||||
# Create backup:
|
# Create backup:
|
||||||
if not options.dry_run and self.filepath.exists() and options.backup:
|
if not options.dry_run and self.filepath.exists() and options.backup:
|
||||||
backup_filename = sanitize_filename(
|
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)
|
backup_path = self.dirpath.joinpath(backup_filename)
|
||||||
logging.info(f"Creating backup to {backup_path}")
|
logging.info(f"Creating backup to {backup_path}")
|
||||||
self.filepath.rename(backup_path)
|
self.filepath.rename(backup_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user