AppImage/de: Difference between revisions

From FreeCAD Documentation
(Created page with "Dies ist eine elegantere inoffizielle Version von AppImageUpdate von Drittanbietern mit dem Namen: '''AppImageUpdater'''. Es befindet sich noch in der Entwicklung (zum Zeitpun...")
(Created page with "=== CLI-Methode 1 (offiziell) ===")
Line 56: Line 56:
Ergebnis: Folge den Anweisungen des AppImageUpdaters.
Ergebnis: Folge den Anweisungen des AppImageUpdaters.


=== CLI method 1 (official) ===
=== CLI-Methode 1 (offiziell) ===


Run the following instructions in your terminal
Run the following instructions in your terminal

Revision as of 19:31, 11 December 2019

Seit dem 7. Juli 2019 beobachtet die FreeCAD Gemeinschaft, dass das Herunterladen von AppImages von Github vor der Fertigstellung eine Zeitüberschreitung zu haben scheint. Wir sind uns nicht sicher, warum dies der Fall ist. Wenn dies für Dich der Fall ist, versuche bitte erneut, den Download zu starten. Es braucht ein paar Versuche. Eine empfohlene Vorgehensweise ist die Verwendung der AppImage auto-updating feature, die den Download an dem Ort wiederherstellt, an dem er fehlgeschlagen ist.

Was ist ein AppImage

Einmaliges Paket und überall einsetzbar. Erreiche Benutzer auf allen wichtigen Linux Desktop Distributionen.

AppImage ist ein "universelles Binärpaket", das eine Anwendung an jede beliebige Linux Distribution verteilen soll. Mehr dazu auf der Appimage Homepage und Wikipedia.

Für andere Installationsarten siehe Download.

FreeCAD AppImages

Stabile Version

Die aktuelle stabile Version ist FreeCAD_0.20.2.29603 (SHA256)

Entwicklungs Version

Aktuelle Entwicklerversion ist FreeCAD_28810 (SHA256)

Wichtige Hinweise:.

  • Die Entwicklung erfolgt täglich und schnell, die Verknüpfung mit dem aktuellsten AppImage ist ein bewegliches Ziel.
  • Der obige Entwicklungslink sollte aktuell sein, da er über ein Skript aktualisiert wird.
  • Viele Benutzer im Forum nutzen die Entwicklungsversion.
  • Es kann auf dem gleichen System parallel zu einer anderen Version von FreeCAD ausgeführt werden.
  • Benutzer verwenden die dev Version, um die neuesten Funktionen und Bugfixes zu nutzen (da FreeCAD einen langen Veröffentlichungszyklus hat). Sie nutzen es auch, um Fehler zu testen und zu finden, um die Entwicklung und Verbesserung von FreeCAD voranzutreiben.

Obligatorisches Wort der Vorsicht

Die Entwicklungsversion ist größtenteils stabil, aber natürlich ist es wichtig, die obligatorische Anweisung hinzuzufügen, um sie auf eigene Gefahr zu verwenden. Obwohl die meisten Leute, die Backups verwenden und "oft speichern", recht gut sind.

Automatische Aktualisierung

AppImage bietet eine intelligente und wirtschaftliche Möglichkeit der Aktualisierung. Es berechnet den Unterschied zwischen dem neuen und dem alten AppImage und lädt nur die Änderungen zwischen den Versionen herunter. Theoretisch lädt der Benutzer am Ende jedes Mal etwa 15% statt eines völlig neuen AppImage herunter.

Die automatische Aktualisierung erfolgt über mehrere optionale Methoden. Derzeit gibt es 4 Methoden, 2 über die grafische Oberfläche (GUI) und 2 über die Befehlszeilen-/Terminalschnittstelle (CLI).

GUI Methode 1 (offiziell)

Dies ist die offizielle AppImageUpdate GUI-Anwendung.

  1. Herunterladen AppImageUpdate-x86_64.AppImage.
  2. Mache es ausführbar, indem Du mit der rechten Maustaste auf die Datei klickst, in die Eigenschaften gehst und "Als ausführbare Datei ausführen".
  3. Doppelklicke auf das AppImage Symbol, ein Dialogfeld erscheint und Du wirst aufgefordert, anzugeben, welches AppImage Du aktualisieren möchtest.
  4. Gib den Pfad zu Deinem vorhandenen AppImage an.
  5. Sobald das AppImage aktualisiert ist, drücke die Schaltfläche Run updated AppImage.

GUI-Methode 2 (inoffiziell)

Dies ist eine elegantere inoffizielle Version von AppImageUpdate von Drittanbietern mit dem Namen: AppImageUpdater. Es befindet sich noch in der Entwicklung (zum Zeitpunkt dieser Wiki-Bearbeitung), ist aber dennoch recht angenehm zu bedienen.

  1. Herunterladen AppImageUpdater-*-x86_64.AppImage
  2. Mache es ausführbar:
    chmod +x AppImageUpdater*-x86_64.AppImage
    
  3. Lauf es durch:
    source AppImageUpdater*-x86_64.AppImage
    
  4. Finde Dein aktuelles FreeCAD AppImage und ziehe es per Drag-and-Drop in den AppImageUpdater.

Ergebnis: Folge den Anweisungen des AppImageUpdaters.

CLI-Methode 1 (offiziell)

Run the following instructions in your terminal

wget https://github.com/AppImage/AppImageUpdate/releases/download/continuous/appimageupdatetool-x86_64.AppImage
chmod +x ./appimageupdatetool-x86_64.AppImage
./appimageupdatetool.AppImage path/to/old/FreeCAD.AppImage
chmod +x path/to/updated/FreeCAD.AppImage
./path/to/updated/FreeCAD.AppImage

Notes:

  • The file names will be unique because of the version info is embedded in them. The above instructions are simplified for convenience.
  • Run ./appimageupdatetool-x86_64.AppImage --help to learn about functionality like -r and --self-update.
  • There is also an i386 version; see the AppImageUpdate release page.

Todo: share a script that can be added as an alias or cron job.

CLI method 2 (unofficial)

Similarly to the Graphical methods having an official and unofficial approaches to downloading AppImages, the same applies to the command line. This is a sleeker 3rd-party command line option to download AppImages

  1. Download appimageupdater-*-x86_64.AppImage
  2. Make it executable:
    chmod +x appimageupdater*-x86_64.AppImage
    
  3. Run it:
    source appimageupdater*-x86_64.AppImage /path/to/old/FreeCAD-AppImage.AppImage
    

Result: Updates specified AppImage file if update exists

Unpacking AppImages

Note: this section is intended for developers.

A very convenient aspect of FreeCAD is that a majority of it is built in Python, which doesn't need to be manually compiled like C++. Essentially, a Python file can be modified, and upon restarting FreeCAD those changes will be integrated into the application. A developer can quickly work on the latest FreeCAD release using this technique and an AppImage. Moreover, using an AppImage doesn't modify your system's environment in any way, that is, nothing is installed and no environmental variables are modified.

Modifying AppImages

An AppImage embeds a file system in it with everything that is required to run the application. In order to modify it, the file system needs to be extracted.

FreeCAD.AppImage --appimage-extract
cd squashfs-root/

Now open the required Python source files in your preferred code editor, modify them, and save them. Then run the application.

./AppRun

Repackaging AppImages

If you've modified the code, and now want to re-package the AppImage with your latest changes, use the appimagetool-x86_64 tool on the extracted file system.

cd ..
wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage squashfs-root