-
Notifications
You must be signed in to change notification settings - Fork 3
Aggiunto script per la creazione di AppImage. #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Questo dovrebbe servire per prevenire problemi di compatibilità futuri con le versioni di Linux. Lo script compila il programma, scarica tutte le dipendenze e le impacchetta in un singolo file AppImage. Il file risultante è stato testato su Arch, Fedora ed Alpine.
|
Nice - gli diamo un'occhiata e la testiamo! |
Added quotes around variable names for safety
Something broke in the last commit, so i fixed it. (a variable name somehow got cut out)
SpaghettiCh2/linuxBuild.sh
Outdated
| cd $current_dir | ||
|
|
||
| echo -n "Compilazione del patcher..." | ||
| dotnet build -c Release -o $_pkgdir/opt/spaghettiproject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Qui andrebbe usato il comando di .net per deploy il progetto properly:
dotnet restore USPInstaller.csproj -r linux-x64
dotnet publish USPInstaller.csproj -r linux-x64 --self-contained
| echo -n "Creazione script di avvio..." | ||
| echo "#!/bin/bash | ||
|
|
||
| \$APPDIR/usr/bin/dotnet \$APPDIR/opt/spaghettiproject/USPInstaller.dll" > "$_pkgdir/usr/bin/USPInstaller.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Senza dover creare uno script di avvio - se cambi la generazione dell'eseguibile a dotnet publish --self-contained come da commento sopra hai tutto self contained per far partire tutto, senza dover anche avere il runtime e puoi runnare ./USPInstaller direttamente
Risolve #11.
Lo script compila il programma, scarica tutte le dipendenze e le impacchetta in un singolo file AppImage.
Lo script va eseguito nella cartella "Installer/SpaghettiCh2".
L'AppImage è stato testato su Arch, Fedora ed Alpine.
Per modificare il modo in cui l'app appare nel menù delle app se l'utente decide di installarla, modificare la sezione che inizia con "Creazione file .desktop..."