From 943d485ef10155f9bccc730a2bd4470fb5a89612 Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Mon, 19 Aug 2024 00:35:04 +0200 Subject: [PATCH] . --- BambuStudio.desktop | 19 +++++++++++++++++++ bambustudio.png | Bin 0 -> 2775 bytes freecad.desktop | 24 ++++++++++++++++++++++++ freecad.png | 33 +++++++++++++++++++++++++++++++++ readme.md | 6 +++++- update.py | 25 ++++++++++++------------- 6 files changed, 93 insertions(+), 14 deletions(-) create mode 100755 BambuStudio.desktop create mode 100644 bambustudio.png create mode 100755 freecad.desktop create mode 100644 freecad.png diff --git a/BambuStudio.desktop b/BambuStudio.desktop new file mode 100755 index 0000000..49054dd --- /dev/null +++ b/BambuStudio.desktop @@ -0,0 +1,19 @@ +[Desktop Entry] +Categories=Graphics;3DGraphics;Engineering; +Comment= +Exec=/home/gruinelli/appImages/bambustudio +GenericName=3D Printing Software +Icon=/home/gruinelli/appImages/bambustudio.png +Keywords=3D;Printing;Slicer;slice;3D;printer;convert;gcode;stl;obj;amf;SLA +MimeType=model/stl;model/3mf;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;x-scheme-handler/bambustudio; +Name=BambuStudio +NoDisplay=false +Path= +StartupNotify=false +StartupWMClass=bambu-studio +Terminal=false +TerminalOptions= +Type=Application +X-Desktop-File-Install-Version=0.27 +X-KDE-SubstituteUID=false +X-KDE-Username= diff --git a/bambustudio.png b/bambustudio.png new file mode 100644 index 0000000000000000000000000000000000000000..8d93acf120387f0c3885e3eb9db0c46e11431937 GIT binary patch literal 2775 zcmchZ`9ISS9LGPdZ8jpghgRSEvXrYL_Xx9+t8(PdSxPi=%otJ5(3cd7lB?MFnYiJl>hkj%aD9DiikcXZ z2?E-wu9H{5JCKaD_rwAKY|noZ0ZPi0cT5qiE7}?$eo*_dGl+*;ov{Ld7kRL)00{tq zUcuN{or@D$o;q{I+g$}T!}hKzb?p{cphfTQ#TZV#bsR^C4!tdcw4b<9m!Gd{3d?V- zr5~2n*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$ni@;s$^44)>nX3~O6Pt)6CPj&!*I);MXK1dp*#qlxkWdDlPZ zWiPD($#=<50ICT=>8-uA5wmZ>R*G z=3icEu#^fNw3Q8hpucFCI08mMbR+d0ROYKKXRCNJ^)duMsV11SoytI)>fgi3VZXkL zj7eyf25nfjuH7sZqv)W<|B$)#X#4~(yEhM#O`;fN7<9XNpD|J!hJ#Tg$}@AxCmVm^ zx0}LmTNsV=^t&y!iu{))WUGodVT>0;%m#}9KDY;bJ?8$|eW$dIHZT3N+7SB5;f0p1NXJwbvga78E=fQu z8tFN4D2X=RX;sxjHG`>ih8k93jxAiPHdYUF|icL0V6mC|!#ku|%ELsN9b(X+7~}oH(rz)@*p< zYtmauJ&3%Y6O3HVPDffn1`GL^zRA4zHv=k`H>*~|d0sj0&`M>9Z|rstO`XdvJQr@8 z*VtYWLoCH^h1{qHf*<~qB`W%rBzkM|Z~dHy!iTkfKVzZV!Vljb=!6wetMF$9mL;sVW_rQ%zahpE + + +FreeCADFreeCAD diff --git a/readme.md b/readme.md index f94c87b..e1ba11a 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,8 @@ # AppImage Updater Call it with a supported application name. -Eg. `python update.py --app freecad` +Eg. `cd appImages && python update.py --app freecad` + + +## Add application to start menu +Copy the `.desktop` file to `~/.local/share/applications/` diff --git a/update.py b/update.py index 9842a4f..c8c6979 100644 --- a/update.py +++ b/update.py @@ -69,30 +69,29 @@ def main(app): # if file exists if os.path.isfile(assetName): log.info("Application " + app + " is already up-to-date (" + assetName + ")") - return + else: # Download it + # Eg. https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-38467-conda-Linux-x86_64-py311.AppImage + log.debug("url: " + assetUrl) - # Eg. https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-38467-conda-Linux-x86_64-py311.AppImage - log.debug("url: " + assetUrl) + # Download to file with progress bar + download(assetUrl, assetName + ".tmp") - # Download to file with progress bar - download(assetUrl, assetName + ".tmp") + # Rename + os.rename(assetName + ".tmp", assetName) - # Rename - os.rename(assetName + ".tmp", assetName) + # todo remove old appimages + + # chmod + os.chmod(assetName, 0o755) # rm link if os.path.isfile(app): os.remove(app) - # todo remove old appimages - - # chmod - os.chmod(assetName, 0o755) - # link os.symlink(assetName, app) - log.info("Application " + app + " updated") + # log.info("Application " + app + " updated") if __name__ == "__main__":