Search found 902 matches

by trevordevore
Fri Nov 16, 2018 2:02 am
Forum: Talking LiveCode
Topic: Creating installers when packaging a Levure application
Replies: 13
Views: 1126

Re: Creating installers when packaging a Levure application

With a slight modification to the dropDMG helper the macos folder in the output can be used as the source folder. To test, update the contents of the dropDMG_packager.livecodescript file (use a text editor) with the contents of the file at the following url: https://raw.githubusercontent.com/trevord...
by trevordevore
Fri Nov 09, 2018 11:29 pm
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

So the appcast.xml file points to the same DMG that you would make available to your users for download from your site. So that folder structure suggestion is correct. As an example, here are my company urls used with the helper. The main DMG file downloaded by helper or directly from my website: ht...
by trevordevore
Fri Nov 09, 2018 8:23 pm
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

Sparkle performs that check when you call `appupdaterInitialize` in `InitializeApplication`.
by trevordevore
Fri Nov 09, 2018 8:22 pm
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

In your preferences stack you can set the checkbox using the value returned by `appupdaterAutomaticallyCheckForUpdates()`. Sparkle will automatically check the value in your Info.plist file or the value in your preferences set when you call `appupdaterSetAutomaticallyCheckForUpdates` and check for u...
by trevordevore
Fri Nov 09, 2018 1:09 am
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

Yes, you can call `appupdaterSetAutomaticallyCheckForUpdates` to change automatic checking in the background. And yes, it would only alert the user if an update is available. Be aware that the default setting can be controlled with the `<key>SUEnableAutomaticChecks</key>` key in the Info.plist file....
by trevordevore
Thu Nov 08, 2018 5:21 am
Forum: Talking LiveCode
Topic: Creating installers when packaging a Levure application
Replies: 13
Views: 1126

Re: Creating installers when packaging a Levure application

That path to the dropdmg command line tool. The default is /usr/local/bin/dropdmg so as long as it is installed in the default location you don't have to set it in app.yml.
by trevordevore
Mon Nov 05, 2018 8:53 pm
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

Marty, I've updated Levure to version 0.9.8 which has the necessary changes for the app updater helper to work. If you are using Git to manage your project then you can just pull the latest from master. Otherwise you can download the ZIP file from the Releases page: https://github.com/trevordevore/l...
by trevordevore
Sun Nov 04, 2018 6:41 am
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

Marty - the problem is that the App Updater helper needs code that is in the `develop` branch of Levure. If you are familiar with how to download alternative branche in a GitHut account then you download it. I will be making a new release of Levure on the `master` branch early next week.
by trevordevore
Sat Nov 03, 2018 4:14 am
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

Hmm, I wonder if there is some code I need to commit to the `master` branch and release before the search/replace will work. I will look at it tomorrow.
by trevordevore
Sat Nov 03, 2018 1:47 am
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

Making progress! Regarding errors - In the ./Contents/Info.plist of your packaged macOS standalone is there the string "[[SUFeedURL]]"? If so then there is most likely an error that is occurring. Is revErrorDisplay visible on the screen? If not then maybe "go stack revErrorDisplay" and see if it sho...
by trevordevore
Fri Nov 02, 2018 5:02 am
Forum: Community Projects
Topic: App Updater helper for Levure
Replies: 16
Views: 823

Re: App Updater helper for Levure

It looks like I need to add some more info to the Readme. Here are some additional notes based on your questions. Sparkle Distribution You can distribute using a variety of formats. Take a look at this section of the Sparkle docs: https://sparkle-project.org/documentation/#4-distributing-your-app In...
by trevordevore
Thu Nov 01, 2018 4:35 pm
Forum: Community Projects
Topic: Getting started with Levure
Replies: 12
Views: 424

Re: Getting started with Levure

I looked at the code and Levure handles the `shutdown` message and runs code to shut things down and cleanup. The handler that is run is `levureShutdownApplication` which is in the `levure.livecodescript` script. That is the handler that calls `prefsSave "user"`. So if you block shutdown and don't p...
by trevordevore
Thu Nov 01, 2018 3:36 am
Forum: Community Projects
Topic: Getting started with Levure
Replies: 12
Views: 424

Re: Getting started with Levure

Why do you need to manually create the pref file if it doesn’t exist? Is there some reason it needs to exist before the first save? If the preference file isn’t being saved on Windows automatically when you quit then it may be that Levure isn’t getting a shutdown message it processes. Are you trappi...
by trevordevore
Thu Nov 01, 2018 1:15 am
Forum: Community Projects
Topic: Getting started with Levure
Replies: 12
Views: 424

Re: Getting started with Levure

Marty - the .plist extension is expected on Mac. Don’t add it to your app.yml file though. The NSUserDefaults API automatically saves to the plist file format. Are you calling prefsSave in your code? NSUserDefaults will flush prefs to disk on its own. On Windows the prefs file won’t be created until...
by trevordevore
Tue Oct 30, 2018 7:02 pm
Forum: Community Projects
Topic: Getting started with Levure
Replies: 12
Views: 424

Re: Getting started with Levure

Great! As to why it didn't work before, my guess is that a behavior (maybe the standalone.livecode stack behavior?) somehow got messed up which affected how packaging worked. You are very welcome Marty! The nice thing about having Levure on Github is that others have been able to contribute to code ...

Go to advanced search