AppImage/pl: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(71 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{VeryImportantMessage|As of 7 July 2019, the FreeCAD community has been observing that downloading AppImages from Github seems to timeout before completion. We aren't sure why this is occurring. If this happens to you please try downloading again. It make take a few tries. A recommended practice is to use the AppImage [https://www.freecadweb.org/wiki/Appimage#Automatic_updating auto-updating feature], which will restore the download from the place it failed.}}


{{TOCright}}
{{TOCright}}


<span id="What_is_an_AppImage?"></span>
== What is an AppImage? ==
==Czym jest AppImage?==


[[Image:AppImage-logo.png|link=https://appimage.org]] {{Emphasis|Package once and run everywhere. Reach users on all major Linux desktop distributions.}}
[[Image:AppImage-logo.png|link=https://appimage.org]] {{Emphasis|Wystarczy raz przygotować pakiet, by móc go uruchomić wszędzie. Pozwala dotrzeć do użytkowników wszystkich głównych dystrybucji Linuksa.}}


AppImage is a "universal binary package" intended to distribute an application to any Linux distribution. Read more about it on the [https://appimage.org Appimage homepage] and [https://en.wikipedia.org/wiki/AppImage Wikipedia].
AppImage to "uniwersalny pakiet binarny" przeznaczony do dystrybucji aplikacji do dowolnej dystrybucji Linuksa. Więcej o nim można przeczytać na stronie [https://appimage.org domowej Appimage] i [https://en.wikipedia.org/wiki/AppImage Wikipedii].

Aby go uruchomić, najpierw uczyń go wykonywalnym, a następnie wpisz względną lub pełną ścieżkę.


To run it, fist make it executable, and then type the relative or full path.
{{Code|code=
{{Code|code=
chmod +x FreeCAD_x86_64.AppImage
chmod +x FreeCAD_xxx-x86_64.AppImage
./FreeCAD_x86_64.AppImage
./FreeCAD_xxx-x86_64.AppImage
}}
}}


For other types of installation see [[Download|Download]].
Inne wersje instalacyjne znajdziesz na stronie [[Download/pl|pobierania]].

== FreeCAD AppImages ==


<span id="FreeCAD_AppImages"></span>
{{VeryImportantMessage|'''Note:''' Development builds are now hosted on the [https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/weekly-builds '''FreeCAD-Bundle'''] github repo.<br/>If the download links below do not work, please manually download the files from the collapsed "Assets" section of the above link}}
==AppImages dla FreeCAD==


{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
Line 28: Line 28:
! style="text-align: center; font-size: 200%;" | Development
! style="text-align: center; font-size: 200%;" | Development
|-
|-
| style="text-align: center;" | [[Image:AppImage-logo.png|link=https://github.com/FreeCAD/FreeCAD/releases/download/{{:Template:Stable-Major-and-Minor-Version}}/FreeCAD_{{:Template:Stable-Version}}-Linux-Conda_glibc2.12-x86_64.AppImage]] [https://github.com/FreeCAD/FreeCAD/releases/download/{{:Template:Stable-Major-and-Minor-Version}}/FreeCAD_{{:Template:Stable-Version}}-Linux-Conda_glibc2.12-x86_64.AppImage {{:Template:Stable-Version}}] ([https://github.com/FreeCAD/FreeCAD/releases/download/{{:Template:Stable-Major-and-Minor-Version}}/FreeCAD_{{:Template:Stable-Version}}-Linux-Conda_glibc2.12-x86_64.AppImage-SHA256.txt SHA256])
| style="text-align: center;" | [[Image:AppImage-logo.png|link=https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/0.21.2]] [https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/0.21.2 v0.21.2]
| style="text-align: center;" | [[Image:AppImage-logo.png|link=https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-{{:Template:Development-Version}}-Linux-Conda_glibc2.12-x86_64.AppImage]] [https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-{{:Template:Development-Version}}-Linux-Conda_glibc2.12-x86_64.AppImage {{:Template:Development-Version}}] ([https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-{{:Template:Development-Version}}-Linux-Conda_glibc2.12-x86_64.AppImage-SHA256.txt SHA256])
| style="text-align: center;" | [[Image:AppImage-logo.png|link=https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/weekly-builds]] [https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/weekly-builds Weekly build]
|}
|}


'''Important Notes:'''
'''Ważne uwagi:'''
* Rozwój postępuje codziennie i dynamicznie.
* Development happens daily and rapidly, the link for the most up-to-date AppImage is a moving target.
* Wielu użytkowników na forum korzysta z wersji rozwojowej.
* The development link above should be up-to-date because it is updated via a script.
* Może być uruchomiona na tym samym systemie równolegle z inną wersją FreeCAD.
* Many users on the forum utilize the development version.
* 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.
* It can be run on the same system in parallel with another version of FreeCAD.
* Users use the dev version to take advantage of the latest features and bug fixes (since FreeCAD has a long release cycle). They also use it to help test and find bugs to spur development and improvement of FreeCAD.


<span id="Obligatory_Word_of_Caution"></span>
==== Obligatory Word of Caution ====
====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.
For the most part the development version is stable but of course it's important to add the obligatory statement to use it at your own risk. Though most people that utilize backups and 'save often' do quite well.


<span id="Automatic_updating"></span>
== Automatic updating ==
==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.
AppImage has a smart and economical way of updating. It calculates the difference between the new AppImage and the old one, and will only download the changes between their versions. In theory the user ends up downloading around 15% each time instead of an entirely new 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)''.
Automatic updating is done via several optional methods. Currently there are 4 methods, 2 through the graphical interface (GUI), and 2 through the command-line/terminal interface (CLI).


<span id="Experimental_in-app_updating"></span>
=== Experimental in-app updating ===
===Eksperymentalna aktualizacja w aplikacji===


Thanks to the efforts of several key devs, there is an [https://forum.freecadweb.org/viewtopic.php?f=8&t=44324 ongoing effort] to integrate a feature that allows '''self-updating the AppImage within FreeCAD''' itself. Starting from FC 0.19.21514 there now exists an AppImage section found via {{MenuCommand|EditPreferences → AppImage}}. Please test this capability and report your experience to the [https://forum.freecadweb.org/viewtopic.php?f=8&t=44324 forum discussion].
Dzięki wysiłkom kilku kluczowych deweloperów, istnieje dyskusja [https://forum.freecadweb.org/viewtopic.php?f=8&t=44324 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 {{MenuCommand|EdycjaPreferencje → AppImage}}. Proszę przetestować możliwość i zgłosić swoje doświadczenia na [https://forum.freecadweb.org/viewtopic.php?f=8&t=44324 forum].


=== GUI method 1 (official) ===
<span id="GUI_method_1_(official)"></span>
===GUI, metoda 1 ''(oficjalna)''===


This is the official AppImageUpdate GUI application.
To jest oficjalna aplikacja AppImageUpdate GUI.
# Download [https://github.com/AppImage/AppImageUpdate/releases/download/continuous/AppImageUpdate-x86_64.AppImage AppImageUpdate-x86_64.AppImage].
# Pobierz [https://github.com/AppImage/AppImageUpdate/releases/download/continuous/AppImageUpdate-x86_64.AppImage AppImageUpdate-x86_64.AppImage].
# Uczyń plik wykonywalnym klikając prawym przyciskiem myszy na nim, wchodząc do właściwości i "Uruchom jako wykonywalny".
# 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.
# Kliknij dwukrotnie na ikonę AppImage, pojawi się okno dialogowe i zostaniesz poproszony o określenie, jaki AppImage chcesz zaktualizować.
# Specify the path to your existing AppImage.
# Określ ścieżkę do istniejącego AppImage.
# Once the AppImage is updated, press the button {{Button|Run updated AppImage}}.
# Po aktualizacji AppImage, naciśnij przycisk {{Button|Run updated AppImage}}.


=== GUI method 2 (unofficial) ===
<span id="GUI_method_2_(unofficial)"></span>
===GUI, metoda 2 ''(nieoficjalna)''===


This is a sleeker 3rd-party unofficial version of AppImageUpdate named: '''AppImageUpdater'''. It is still in development (at the time of this wiki edit) but nevertheless, quite nice to use.
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.
# Download [https://github.com/antony-jr/AppImageUpdater/releases/tag/continuous AppImageUpdater-*-x86_64.AppImage]
# Pobierz [https://github.com/antony-jr/AppImageUpdater/releases/tag/continuous AppImageUpdater-*-x86_64.AppImage]
# Make it executable: {{Code|code=chmod +x AppImageUpdater*-x86_64.AppImage}}
# Nadaj mu atrybut wykonywalności: {{Code|code=chmod +x AppImageUpdater*-x86_64.AppImage}}
# Run it: {{Code|code=source AppImageUpdater*-x86_64.AppImage}}
# Uruchom go: {{Code|code=source AppImageUpdater*-x86_64.AppImage}}
# Find your current FreeCAD AppImage and drag-drop it on to the AppImageUpdater
# Znajdź swój aktualny obraz FreeCAD AppImage i przeciągnij go na AppImageUpdater
Wynik: Postępuj zgodnie z podpowiedziami AppImageUpdater
Result: Follow the AppImageUpdater prompts


=== CLI method 1 (official) ===
<span id="CLI_method_1_(official)"></span>
===CLI, metoda 1 ''(oficjalna)''===


Uruchom w terminalu następujące instrukcje
Run the following instructions in your terminal


{{Code|code=
{{Code|code=
Line 83: Line 88:
}}
}}


Uwagi:
Notes:
* Nazwy plików będą unikalne z powodu informacji o wersji, która jest w nich osadzona. Powyższe instrukcje są uproszczone dla wygody.
* The file names will be unique because of the version info is embedded in them. The above instructions are simplified for convenience.
* Run {{incode|./appimageupdatetool-x86_64.AppImage --help}} to learn about functionality like {{incode|--remove-old}}, {{incode|--overwrite}} and {{incode|--self-update}}.
* Uruchom polecenie {{incode|./appimageupdatetool-x86_64.AppImage --help}}, aby dowiedzieć się o funkcjach takich jak {{incode|--remove-old}}, {{incode|--overwrite}} i {{incode|--self-update}}.
* There is also an i386 version; see the [https://github.com/AppImage/AppImageUpdate/releases AppImageUpdate release] page.
* Istnieje również wersja i386; zobacz stronę [https://github.com/AppImage/AppImageUpdate/releases wydania AppImageUpdate].


Zadanie: udostępnić skrypt, który można dodać jako alias lub zadanie [https://en.wikipedia.org/wiki/Cron cron].
Todo: share a script that can be added as an alias or cron job.


=== CLI method 2 (unofficial) ===
<span id="CLI_method_2_(unofficial)"></span>
===CLI, metoda 2 ''(nieoficjalna)''===


Podobnie jak w przypadku metod graficznych mających oficjalne i nieoficjalne podejście do pobierania AppImages, to samo dotyczy wiersza poleceń. Jest to elegancka opcja dotycząca wiersza poleceń pochodząca od innych osób, aby pobrać AppImages.
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 [https://github.com/antony-jr/AppImageUpdater/releases/tag/continuous-cli appimageupdater-*-x86_64.AppImage]
# Pobierz [https://github.com/antony-jr/AppImageUpdater/releases/tag/continuous-cli appimageupdater-*-x86_64.AppImage]
# Make it executable: {{Code|code=chmod +x appimageupdater*-x86_64.AppImage}}
# Uczyń go wykonywalnym: {{Code|code=chmod +x appimageupdater*-x86_64.AppImage}}
# Run it: {{Code|code=source appimageupdater*-x86_64.AppImage /path/to/old/FreeCAD-AppImage.AppImage}}
# Uruchom go: {{Code|code=source appimageupdater*-x86_64.AppImage /path/to/old/FreeCAD-AppImage.AppImage}}
'''Result''': Updates specified AppImage file if update exists
'''Wynik''': Aktualizuje wskazany plik AppImage, jeśli aktualizacja jest dostępna.




= Experimental =
<span id="Experimental"></span>
=Eksperymentalne=


<span id="Fixing_AppImage_zsync"></span>
== Fixing AppImage zsync ==
==Naprawianie zsync dla AppImage==


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.
Może się zdarzyć, że AppImage nie będzie aktualizowany, ponieważ jego plik docelowy zmienił się w jakiś sposób. Zamiast pobierać cały nowy AppImage, można przepisać plik zsync, który jest używany przez AppImage do pobrania zmiany. Więcej informacji można znaleźć na stronie https://github.com/antony-jr/appimage-update-info-writer.


Ta część wymaga więcej szczegółów.
This section needs more details.


<span id="Downloading_via_Bittorrent"></span>
== Downloading via Bittorrent ==
==Pobieranie przez 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
Eksperymentalną funkcją, którą bada zespół pakujący FreeCAD ''(dzięki pracy Antony-jr)'' jest możliwość pobrania pliku appimage delta FreeCAD przez bittorrent. Zagadnienie repozytorium znajduje się pod adresem https://github.com/FreeCAD/FreeCAD-Bundle/issues/49.


<span id="Developer_Section"></span>
= Developer Section =
=Sekcja Deweloperów=


{{Emphasis|Note:}} the following sections are intended for developers
{{Emphasis|Uwaga:}} poniższe sekcje przeznaczone dla programistów.


<span id="Unpacking_AppImages"></span>
== Unpacking AppImages ==
==Rozpakowanie AppImages==


Bardzo wygodnym aspektem FreeCAD jest to, że większość z nich jest zbudowana w środowisku [[Python/pl|Python]], które nie musi być samodzielnie kompilowane jak C++. Zasadniczo, plik Pythona może zostać zmodyfikowany, a po ponownym uruchomieniu programu FreeCAD zmiany te zostaną zintegrowane z aplikacją. Programista może szybko pracować nad najnowszym wydaniem FreeCAD używając tej techniki i AppImage. Co więcej, użycie AppImage nie modyfikuje w żaden sposób środowiska Twojego systemu, to znaczy, że nic nie jest instalowane i żadne zmienne środowiskowe nie są modyfikowane.
A very convenient aspect of FreeCAD is that a majority of it is built in [[Python|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.


<span id="Modifying_AppImages"></span>
=== Modifying AppImages ===
===Modyfikacja 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.
AppImage osadza w sobie system plików ze wszystkim, co jest wymagane do uruchomienia aplikacji. Aby go zmodyfikować, system plików musi zostać wyodrębniony.


{{Code|code=
{{Code|code=
Line 130: Line 141:
}}
}}


Teraz otwórz wymagane pliki źródłowe Pythona w preferowanym edytorze kodu, zmodyfikuj je i zapisz. Następnie uruchom aplikację.
Now open the required Python source files in your preferred code editor, modify them, and save them. Then run the application.


{{Code|code=
{{Code|code=
Line 136: Line 147:
}}
}}


<span id="Repackaging_AppImages"></span>
=== Repackaging AppImages ===
===Przepakowanie AppImages===


If you've modified the code, and now want to re-package the AppImage with your latest changes, use the [https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage appimagetool-x86_64] tool on the extracted file system.
Jeśli zmodyfikowałeś kod, a teraz chcesz ponownie spakować AppImage z najnowszymi zmianami, użyj narzędzia [https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage appimagetool-x86_64] na wyodrębnionym systemie plików.


{{Code|code=
{{Code|code=
Line 147: Line 159:
}}
}}


<span id="Personalized_AppImages"></span>
== Personalized AppImages ==
==Personalizowanie AppImages==

Dzięki pracy {{Emphasis|realthunder}}, autora [[App_Link/pl|App Link]] i środowiska pracy [[Assembly3_Workbench/pl|Assembly3]], możliwe jest budowanie niestandardowych AppImages przy użyciu zestawu skryptów.

Dzięki temu bardzo wygodnie jest wydawać obrazy dla konkretnej gałęzi kodu źródłowego, aby inni mogli je testować. Chociaż AppImages działają tylko na Linuksie, skrypty realthundera umożliwiają generowanie AppImages także na Windows i MacOS.

Repozytorium dla tych skryptów znajduje się pod adresem [https://github.com/realthunder/FreeCADMakeImage realthunder/FreeCADMakeImage]. Proszę przeczytać informacje z pliku [https://github.com/realthunder/FreeCADMakeImage/blob/master/Readme.md Readme.md], aby uzyskać więcej szczegółów.


<span id="Related"></span>
Thanks to the work of {{Emphasis|realthunder}}, author of [[App_Link|App Link]] and [[Assembly3_Workbench|Assembly3 Workbench]], it is possible to build custom AppImages using a set of scripts.
==Powiązane==


* pakiety [[Ubuntu_Snap/pl|Snap]].
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.
* pakiety [[Flatpak/pl|Flatpak]].


The repository for these scripts is at [https://github.com/realthunder/FreeCADMakeImage realthunder/FreeCADMakeImage]. Please read the [https://github.com/realthunder/FreeCADMakeImage/blob/master/Readme.md Readme.md] for more details.


[[Category:Packaging{{#translation:}}]]
[[Category:Packaging{{#translation:}}]]

Latest revision as of 05:37, 9 January 2024

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 wersje instalacyjne znajdziesz na stronie pobierania.

AppImages dla FreeCAD

Available FreeCAD AppImages
Stable Development
v0.21.2 Weekly build

Ważne uwagi:

  • Rozwój postępuje codziennie i dynamicznie.
  • 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)

To jest oficjalna aplikacja AppImageUpdate GUI.

  1. Pobierz AppImageUpdate-x86_64.AppImage.
  2. Uczyń plik wykonywalnym klikając prawym przyciskiem myszy na nim, wchodząc do właściwości i "Uruchom jako wykonywalny".
  3. Kliknij dwukrotnie na ikonę AppImage, pojawi się okno dialogowe i zostaniesz poproszony o określenie, jaki AppImage chcesz zaktualizować.
  4. Określ ścieżkę do istniejącego AppImage.
  5. Po aktualizacji AppImage, naciśnij przycisk 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.

  1. Pobierz AppImageUpdater-*-x86_64.AppImage
  2. Nadaj mu atrybut wykonywalności:
    chmod +x AppImageUpdater*-x86_64.AppImage
    
  3. Uruchom go:
    source AppImageUpdater*-x86_64.AppImage
    
  4. Znajdź swój aktualny obraz FreeCAD AppImage i przeciągnij go na AppImageUpdater

Wynik: Postępuj zgodnie z podpowiedziami AppImageUpdater

CLI, metoda 1 (oficjalna)

Uruchom w terminalu następujące instrukcje

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

Uwagi:

  • Nazwy plików będą unikalne z powodu informacji o wersji, która jest w nich osadzona. Powyższe instrukcje są uproszczone dla wygody.
  • Uruchom polecenie ./appimageupdatetool-x86_64.AppImage --help, aby dowiedzieć się o funkcjach takich jak --remove-old, --overwrite i --self-update.
  • Istnieje również wersja i386; zobacz stronę wydania AppImageUpdate.

Zadanie: udostępnić skrypt, który można dodać jako alias lub zadanie cron.

CLI, metoda 2 (nieoficjalna)

Podobnie jak w przypadku metod graficznych mających oficjalne i nieoficjalne podejście do pobierania AppImages, to samo dotyczy wiersza poleceń. Jest to elegancka opcja dotycząca wiersza poleceń pochodząca od innych osób, aby pobrać AppImages.

  1. Pobierz appimageupdater-*-x86_64.AppImage
  2. Uczyń go wykonywalnym:
    chmod +x appimageupdater*-x86_64.AppImage
    
  3. Uruchom go:
    source appimageupdater*-x86_64.AppImage /path/to/old/FreeCAD-AppImage.AppImage
    

Wynik: Aktualizuje wskazany plik AppImage, jeśli aktualizacja jest dostępna.


Eksperymentalne

Naprawianie zsync dla AppImage

Może się zdarzyć, że AppImage nie będzie aktualizowany, ponieważ jego plik docelowy zmienił się w jakiś sposób. Zamiast pobierać cały nowy AppImage, można przepisać plik zsync, który jest używany przez AppImage do pobrania zmiany. Więcej informacji można znaleźć na stronie https://github.com/antony-jr/appimage-update-info-writer.

Ta część wymaga więcej szczegółów.

Pobieranie przez Bittorrent

Eksperymentalną funkcją, którą bada zespół pakujący FreeCAD (dzięki pracy Antony-jr) jest możliwość pobrania pliku appimage delta FreeCAD przez bittorrent. Zagadnienie repozytorium znajduje się pod adresem https://github.com/FreeCAD/FreeCAD-Bundle/issues/49.

Sekcja Deweloperów

Uwaga: poniższe sekcje są przeznaczone dla programistów.

Rozpakowanie AppImages

Bardzo wygodnym aspektem FreeCAD jest to, że większość z nich jest zbudowana w środowisku Python, które nie musi być samodzielnie kompilowane jak C++. Zasadniczo, plik Pythona może zostać zmodyfikowany, a po ponownym uruchomieniu programu FreeCAD zmiany te zostaną zintegrowane z aplikacją. Programista może szybko pracować nad najnowszym wydaniem FreeCAD używając tej techniki i AppImage. Co więcej, użycie AppImage nie modyfikuje w żaden sposób środowiska Twojego systemu, to znaczy, że nic nie jest instalowane i żadne zmienne środowiskowe nie są modyfikowane.

Modyfikacja AppImages

AppImage osadza w sobie system plików ze wszystkim, co jest wymagane do uruchomienia aplikacji. Aby go zmodyfikować, system plików musi zostać wyodrębniony.

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

Teraz otwórz wymagane pliki źródłowe Pythona w preferowanym edytorze kodu, zmodyfikuj je i zapisz. Następnie uruchom aplikację.

./AppRun

Przepakowanie AppImages

Jeśli zmodyfikowałeś kod, a teraz chcesz ponownie spakować AppImage z najnowszymi zmianami, użyj narzędzia appimagetool-x86_64 na wyodrębnionym systemie plików.

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

Personalizowanie AppImages

Dzięki pracy realthunder, autora App Link i środowiska pracy Assembly3, możliwe jest budowanie niestandardowych AppImages przy użyciu zestawu skryptów.

Dzięki temu bardzo wygodnie jest wydawać obrazy dla konkretnej gałęzi kodu źródłowego, aby inni mogli je testować. Chociaż AppImages działają tylko na Linuksie, skrypty realthundera umożliwiają generowanie AppImages także na Windows i MacOS.

Repozytorium dla tych skryptów znajduje się pod adresem realthunder/FreeCADMakeImage. Proszę przeczytać informacje z pliku Readme.md, aby uzyskać więcej szczegółów.

Powiązane