From 34625673a9b79d0f4011b90c394409b8a0053ad8 Mon Sep 17 00:00:00 2001 From: neox95 Date: Sat, 10 Aug 2019 22:00:32 +0200 Subject: [PATCH] Some enhancements --- src/CNIRevelator.lnk | Bin 0 -> 893 bytes src/updater.py | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/CNIRevelator.lnk diff --git a/src/CNIRevelator.lnk b/src/CNIRevelator.lnk new file mode 100644 index 0000000000000000000000000000000000000000..3d7d4d0c9ccec41a54dc569ae9b19b23f8496634 GIT binary patch literal 893 zcmeZaU|?VrVFHp23W)KRQi-!P(CgG~=|4XZQM zGh<)~ftt_mzjGS9zy55H`P)~r0ZA5w(O}lW!~3A-2LVkj1L7Q@4J8cu3`Gpa40;R( zKnygHK?-P_5d$dP*!?$6Qvmq|Vw-D(D+5Ci+`e5v`!<37^BAjrQw09uv`-Icdj;5U zGC&)vfEYxB;s`{W05J$u0OHN zUW`*|QEFmo3@G3eld}`kQ$ft2)Uwo^#FG3XV?6^sGZYcM)CyqGIspBw#}I>sbYdt4 zhD$0igi3+(*y05yiZ3*AtAT|;0>pm{B7igq*{yE6r6fdtV8gyq#q%9V3Yx4jA4N#kTwhs2;L}`>$0}Dz+<_GgWeL` iiXK^@cm@zNcmT2XpSo{4b?%c_=}7jePILt6g#!R}q0#pM literal 0 HcmV?d00001 diff --git a/src/updater.py b/src/updater.py index b02ca37..7f8d54e 100644 --- a/src/updater.py +++ b/src/updater.py @@ -56,7 +56,7 @@ def createShortcut(path, target='', wDir='', icon=''): shortcut.close() else: shell = Dispatch('WScript.Shell') - shortcut = shell.CreateShortCut(path) + shortcut = shell.CreateShortCut(shell.SpecialFolders("Desktop") + r"\{}".format(path)) shortcut.Targetpath = target shortcut.WorkingDirectory = wDir if icon == '': @@ -284,6 +284,9 @@ def batch(credentials): shutil.rmtree(UPATH + 'temp') logfile.printdbg('Extracted :' + UPATH + '\\CNIRevelator.exe') + # Make a shortcut + createShortcut("CNIRevelator.lnk", UPATH + '\\CNIRevelator.exe', UPATH) + launcherWindow.printmsg('Success !') # Cleanup