.
This commit is contained in:
parent
e156ef46cc
commit
943d485ef1
19
BambuStudio.desktop
Executable file
19
BambuStudio.desktop
Executable file
@ -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=
|
BIN
bambustudio.png
Normal file
BIN
bambustudio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
24
freecad.desktop
Executable file
24
freecad.desktop
Executable file
@ -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;
|
33
freecad.png
Normal file
33
freecad.png
Normal file
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
viewBox="0 0 48 48"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"><title
|
||||
id="title11">FreeCAD</title><defs
|
||||
id="defs1" /><g
|
||||
id="g1"
|
||||
transform="matrix(2,0,0,2,0.11243557,0)"><path
|
||||
d="m 22,3.9997423 -3.999742,4.0002581 h -8 V 10.999806 H 14 v 4.000259 h -3.999742 v 4.999678 L 5.9999997,24 h 4.0503843 c 0.30326,-1e-6 0.571883,-0.195269 0.66559,-0.48369 l 0.723985,-2.22828 c 0.06925,-0.213087 0.236489,-0.379833 0.449583,-0.449065 l 0.556553,-0.180868 c 0.213108,-0.06926 0.446577,-0.03248 0.627866,0.09922 l 1.894968,1.377173 c 0.245331,0.178232 0.57787,0.178229 0.823203,0 l 1.698598,-1.234547 c 0.245363,-0.178242 0.347963,-0.493948 0.254247,-0.782378 l -0.723984,-2.22828 c -0.06926,-0.213109 -0.03197,-0.446575 0.09974,-0.627866 l 0.344164,-0.473355 c 0.131697,-0.181276 0.34179,-0.288856 0.565855,-0.28887 l 2.343001,5.1e-4 c 0.303278,10e-6 0.571885,-0.19577 0.66559,-0.484207 l 0.649054,-1.996771 c 0.0937,-0.288413 -0.0089,-0.60465 -0.254247,-0.782895 L 19.538664,11.858666 C 19.357381,11.726957 19.250306,11.516889 19.250311,11.292812 V 10.70732 c 1.9e-5,-0.224072 0.107062,-0.434681 0.288353,-0.566372 L 21.711646,8.5622376 C 21.892924,8.4305313 21.999999,8.219938 22,7.9958659 Z"
|
||||
style="fill:#418fde;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.64567;stroke-linecap:square"
|
||||
id="path8" /><path
|
||||
id="path7"
|
||||
style="display:inline;fill:#ff585d;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.64567;stroke-linecap:square"
|
||||
d="m 18,0 -4,4 h 4 V 8 L 22,4 V 0 Z M 6,16 2,20 v 4 h 4 l 4,-4 H 6 Z" /><path
|
||||
d="M 6,0 2,4 V 20 L 6,16 V 4 h 8 l 4,-4 z"
|
||||
style="fill:#cb333b;fill-rule:evenodd;stroke-width:2.64567;stroke-linecap:square"
|
||||
id="path3" /><path
|
||||
d="M 5.9999997,19.999743 H 10.000258 V 15.000065 H 14 V 10.999806 H 10.000258 V 8.0000004 h 8 V 3.9997423 H 5.9999997 Z"
|
||||
style="fill:#fefefe;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.64567;stroke-linecap:square"
|
||||
id="path9" /></g><metadata
|
||||
id="metadata11"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:title>FreeCAD</dc:title></cc:Work></rdf:RDF></metadata></svg>
|
After Width: | Height: | Size: 2.5 KiB |
@ -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/`
|
||||
|
13
update.py
13
update.py
@ -69,8 +69,7 @@ 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)
|
||||
|
||||
@ -80,19 +79,19 @@ def main(app):
|
||||
# Rename
|
||||
os.rename(assetName + ".tmp", assetName)
|
||||
|
||||
# rm link
|
||||
if os.path.isfile(app):
|
||||
os.remove(app)
|
||||
|
||||
# todo remove old appimages
|
||||
|
||||
# chmod
|
||||
os.chmod(assetName, 0o755)
|
||||
|
||||
# rm link
|
||||
if os.path.isfile(app):
|
||||
os.remove(app)
|
||||
|
||||
# link
|
||||
os.symlink(assetName, app)
|
||||
|
||||
log.info("Application " + app + " updated")
|
||||
# log.info("Application " + app + " updated")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user