AppImage
Czym jest AppImage?
Wystarczy raz przygotować pakiet, by móc go uruchomić wszędzie. Pozwala dotrzeć do użytkowników wszystkich głównych dystrybucji Linuksa.
AppImage to "uniwersalny pakiet binarny" przeznaczony do dystrybucji aplikacji do dowolnej dystrybucji Linuksa. Więcej o nim można przeczytać na stronie domowej Appimage i Wikipedii.
Aby go uruchomić, najpierw uczyń go wykonywalnym, a następnie wpisz względną lub pełną ścieżkę.
chmod +x FreeCAD_xxx-x86_64.AppImage
./FreeCAD_xxx-x86_64.AppImage
Inne rodzaje instalacji znajdziesz na stronie pobierania.
AppImages dla FreeCAD
Jeśli poniższe linki do pobrania nie działają, proszę ręcznie pobrać pliki z rozwiniętej sekcji "Assets" powyższego linku
Stable | Development |
---|---|
v0.20.2 | Weekly build |
Ważne uwagi:
- Rozwój postępuje codziennie i szybko, link dla najbardziej aktualnego AppImage jest celem zmieniającym się.
- Link do wersji rozwojowej powyżej powinien być aktualny, ponieważ jest aktualizowany przez skrypt.
- Wielu użytkowników na forum korzysta z wersji rozwojowej.
- Może być uruchomiona na tym samym systemie równolegle z inną wersją FreeCAD.
- Użytkownicy używają wersji rozwojowej, aby skorzystać z najnowszych funkcji i poprawek błędów (ponieważ FreeCAD ma długi cykl wydawniczy). Używają jej również do testowania i znajdowania błędów, aby stymulować rozwój i ulepszanie FreeCAD.
Obowiązkowe słowo przestrogi
W przeważającej części wersja rozwojowa jest stabilna, ale oczywiście należy dodać obowiązkowe stwierdzenie, aby używać jej na własne ryzyko. Chociaż większość ludzi, którzy wykorzystują kopie zapasowe i "często zapisują" radzi sobie całkiem dobrze.
Automatyczne aktualizacje
AppImage ma inteligentny i ekonomiczny sposób aktualizacji. Oblicza różnicę między nowym AppImage a starym i pobiera tylko zmiany między ich wersjami. Teoretycznie użytkownik za każdym razem pobiera około 15% zamiast zupełnie nowego AppImage.
Automatyczna aktualizacja odbywa się za pomocą kilku opcjonalnych metod. Obecnie istnieją cztery metody, dwie przez interfejs graficzny (GUI) i dwie przez interfejs wiersza poleceń / terminala (CLI).
Eksperymentalna aktualizacja w aplikacji
Dzięki wysiłkom kilku kluczowych deweloperów, istnieje dyskusja bieżące wysiłki, aby zintegrować funkcję, która pozwala na samoaktualizację AppImage w programie FreeCAD. Począwszy od FC 0.19.21514 istnieje teraz sekcja AppImage dostępna poprzez menu Edycja → Preferencje → AppImage. Proszę przetestować tę możliwość i zgłosić swoje doświadczenia na forum.
GUI metoda 1 (oficjalna)
This is the official AppImageUpdate GUI application.
- Download AppImageUpdate-x86_64.AppImage.
- Make it executable by right clicking on the file, going in to properties and "Run as an executable".
- Double click on the AppImage icon, a dialog box will appear and you'll be prompted to specify what AppImage you want to update.
- Specify the path to your existing AppImage.
- Once the AppImage is updated, press the button Run updated AppImage.
GUI metoda 2 (nieoficjalna)
To jest bardziej elegancka, niezależna, nieoficjalna wersja AppImageUpdate o nazwie: AppImageUpdater. Jest jeszcze w fazie rozwoju (w czasie tej edycji wiki), ale mimo to, całkiem przyjemna w użyciu.
- Pobierz AppImageUpdater-*-x86_64.AppImage
- Nadaj mu atrybut wykonywalności:
chmod +x AppImageUpdater*-x86_64.AppImage
- Uruchom go:
source AppImageUpdater*-x86_64.AppImage
- Znajdź swój aktualny obraz FreeCAD AppImage i przeciągnij go na AppImageUpdater
Wynik: Postępuj zgodnie z podpowiedziami AppImageUpdater
CLI method 1 (official)
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--remove-old
,--overwrite
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 [1] 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.
- Download appimageupdater-*-x86_64.AppImage
- Make it executable:
chmod +x appimageupdater*-x86_64.AppImage
- Run it:
source appimageupdater*-x86_64.AppImage /path/to/old/FreeCAD-AppImage.AppImage
Result: Updates specified AppImage file if update exists
Experimental
Fixing AppImage zsync
It may happen that an AppImage won't update because it's target file changed in some way. Instead of downloading a whole new AppImage, it's possible to rewrite the zsync file that is used by the AppImage to download the delta. More info can be found at https://github.com/antony-jr/appimage-update-info-writer.
This section needs more details.
Downloading via Bittorrent
An experimental feature that the FreeCAD packaging team is exploring (thanks to the work of Antony-jr) is being able to download an appimage delta of FreeCAD via bittorrent. The repository issue is at https://github.com/FreeCAD/FreeCAD-Bundle/issues/49
Developer Section
Note: the following sections are intended for developers
Unpacking AppImages
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_xxx.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
Personalized AppImages
Thanks to the work of realthunder, author of App Link and Assembly3 Workbench, it is possible to build custom AppImages using a set of scripts.
This makes it very convenient to release images for a specific branch of the source code for others to test. Although AppImages only work on Linux, realthunder's scripts make it possible to generate AppImages also on Windows and MacOS.
The repository for these scripts is at realthunder/FreeCADMakeImage. Please read the Readme.md for more details.
Related
- Jak zacząć
- Instalacja: Pobieranie programu, Windows, Linux, Mac, Dodatkowych komponentów, Docker, AppImage, Ubuntu Snap
- Podstawy: Informacje na temat FreeCAD, Interfejs użytkownika, Profil nawigacji myszką, Metody wyboru, Nazwa obiektu, Edytor ustawień, Środowiska pracy, Struktura dokumentu, Właściwości, Pomóż w rozwoju FreeCAD, Dotacje
- Pomoc: Poradniki, Wideo poradniki
- Środowiska pracy: Strona Startowa, Złożenie, BIM, CAM, Rysunek Roboczy, MES, Inspekcja, Siatka, OpenSCAD, Część, Projekt Części, Punkty, Inżynieria Wsteczna, Robot, Szkicownik, Arkusz Kalkulacyjny, Powierzchnia 3D, Rysunek Techniczny, Test Framework