Build the app to share with others

LiveCode www.youtube.com

Breve Riepilogo

Questo video tutorial spiega come trasformare un'applicazione LiveCode in un'applicazione standalone, che può essere condivisa con chiunque senza richiedere l'installazione di LiveCode. Il processo include la configurazione delle impostazioni standalone, l'aggiunta dei file necessari (come file audio), la selezione delle piattaforme di destinazione (Mac e Windows) e l'inclusione di un'icona personalizzata.

  • Creazione di un'applicazione eseguibile per diverse piattaforme.
  • Inclusione di risorse necessarie come file audio e icone.
  • Condivisione dell'applicazione con utenti senza LiveCode.

Impostazioni Generali per la Standalone Application

Per iniziare, dopo aver salvato lo stack, si accede alle impostazioni della standalone application tramite il menu "File" e selezionando "Standalone application settings". Nella finestra che si apre, la sezione "General" permette di modificare il nome dell'applicazione standalone, ma se il nome predefinito è adeguato, si può lasciare invariato.

Inclusione dei File Necessari

È fondamentale includere tutti i file necessari affinché l'applicazione funzioni correttamente. Nella sezione "Copy files", si possono aggiungere file audio, video o altri tipi di risorse. Per includere un'intera cartella, si clicca su "Add folder", si seleziona la cartella "resources" contenente i file audio del piano, e questa apparirà nella lista dei file inclusi.

Selezione delle Piattaforme e Aggiunta dell'Icona

Si procede selezionando le piattaforme per cui si vuole creare la standalone application. Nel video, si scelgono Mac e Windows, assicurandosi che le relative caselle siano spuntate. È possibile aggiungere un'icona personalizzata all'applicazione cliccando su "Choose" nella sezione "Application icon" e selezionando il file dell'icona (piano.icns per Mac e l'icona per Windows). Le opzioni per Linux, iOS e Android vengono deselezionate per questo esempio.

Salvataggio come Standalone Application

Dopo aver configurato le impostazioni, si chiude la finestra e si seleziona "Save as a standalone application" dal menu "File". Si sceglie la posizione in cui salvare la standalone application (ad esempio, il desktop) e si clicca su "Save". LiveCode compilerà l'applicazione, copierà i file necessari e salverà la standalone application nella posizione specificata.

Verifica del Funzionamento della Standalone Application

Per verificare che la standalone application funzioni correttamente, si chiude LiveCode e si apre la cartella contenente l'applicazione creata sul desktop. Si avvia l'eseguibile (ad esempio, il file "piano" per Mac) per assicurarsi che l'applicazione si apra e funzioni come previsto, senza richiedere l'installazione di LiveCode.

Summarize any YouTube video in seconds

Get summaries like this one for any video, in your language, with the free Summ app.

Download on the Apple Store
Get it on Google Play

Trascrizione

YouTube Transcript Generator

0:00 okay so now you've got a great app and you want to share it but not everyone has Live code so the next step is to build your app into a standalone application when you create a standalone application Live code creates an executable file for the platforms that you select and you can then send this to this file to anyone and they can use your app without having to install Live code okay so firstly we're just going to look at building a desktop Standalone so we've saved our stack and what we want to do is we want to set up um all the options for our Standalone so to do this you go to file and you choose Standalone application settings so it'll open up on the general pane now there's lots of options but you don't have to worry about most of them the only one you could change in here if you wanted to is the Standalone name but I'm quite happy with piano so I'm going to leave that as it is now we've got

0:47 some files that we need to get that we need to include so that our app works correctly we need to include our piano sound so we want to go to the copy files Pane and this is where you can include any files that your app needs like sound files or videos or anything else now we've got a whole folder that we want to include so we click on add folder go to your piano signboard and you want to include the whole resources folder so click on resources and it'll show up in the list here now we next need to choose the platforms that we want to build for so we want to build for Mac so we have mac ticked and what we want to do is we want to include an icon now you don't have to include an icon but if you've got a nice icon it's a good idea to um select that in here so you've got the application

1:33 icon you just click on choose and you'll have an icon that you can download from the resources um along with this lesson so click on the piano. i ns file and make sure you've got Mac clicked now we also want to build for W Windows so make sure you've got Windows clicked and again let's choose the windows icon and for now we don't want build for Linux at the moment so I'm just going to untick Linux we're not going to build for iOS and we're not going to build for Android so we just want Mac and windows clicked we want our resources in the copy files and in general we just want our Standalone name to be piano and that's all the setup that we need to do so then we just close this now to

2:18 actually save as a standalone application you simply go to file and you choose save as a standalone application It'll ask you where you want to store your standal I'm just going to pick the desktop click choose save your stack it'll tell you what's happening so it's currently building copying the files and there's the Standalone application saved successfully so we'll okay that now I'm just going to Quick Live code to show you that is working without Live code so here's the piano folder that was created on my desktop if I open that up here's my Mac folder here's my piano uh executable with the nice icon [Music] so there you have a built Standalone

3:05 that you can share with anyone even if they don't have Live code so congratulations you've finished your piano app and you've built it into a standalone that you can share with um share with anyone so if you've still got a little bit of time you can move on to um the rest of the further challenges and if you've come to the end of your hour of code then congratulations and go ahead and collect your certificate now

Share

Riassunti di video YouTube