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 0000000..8d93acf Binary files /dev/null and b/bambustudio.png differ diff --git a/freecad.desktop b/freecad.desktop new file mode 100755 index 0000000..b112935 --- /dev/null +++ b/freecad.desktop @@ -0,0 +1,24 @@ +[Desktop Entry] +Name=FreeCAD +Name[de]=FreeCAD +Name[ko]=FreeCAD +Name[pl]=FreeCAD +Name[ru]=FreeCAD +Comment=Feature based Parametric Modeler +Comment[de]=Feature-basierter parametrischer Modellierer +Comment[ko]=형상 기반 파라메트릭 모델링 도구 +Comment[pl]=Modeler parametryczny oparty na cechach +Comment[ru]=Система автоматизированного проектирования +GenericName=CAD Application +GenericName[de]=CAD-Anwendung +GenericName[ko]=CAD 응용프로그램 +GenericName[pl]=Aplikacja CAD +GenericName[ru]=Система автоматизированного проектирования +Exec=/home/gruinelli/appImages/freecad +Terminal=false +Type=Application +Icon=/home/gruinelli/appImages/freecad.png +Categories=Graphics;Science;Education;Engineering;X-CNC; +StartupNotify=true +StartupWMClass=FreeCAD +MimeType=application/x-extension-fcstd;model/obj;image/vnd.dwg;image/vnd.dxf;model/vnd.collada+xml;application/iges;model/iges;model/step;model/step+zip;model/stl;application/vnd.shp;model/vrml; diff --git a/freecad.png b/freecad.png new file mode 100644 index 0000000..805b45f --- /dev/null +++ b/freecad.png @@ -0,0 +1,33 @@ + + + +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__":