Sparkle in Sandbox Mode

If you’re trying to distribute updates for your OSX app, outside the AppStore, still, with the AppSandbox enabled, you’ve come to the right place.

In the official Sparkle repository, you can find this pull request. Since it hasn’t been updated in a while, and the settings were fixed for OSX Lion, i’ve just forked the pull request, and pushed a couple fixes here.

Allright, so, how should you proceed?

  1. Clone the repository!
  2. Open the Build Phases of your target and…
    1. Add Sparkle.framework as a dependency
    2. Link Sparkle.framework library
    3. Copy Sparkle.framework to ‘Frameworks’
  3. If you’ve done things right, your ‘Build Phases’ tab should look something like this:

    OSX Sparkle Sandboxed

  4. Add a ‘Run Script‘ phase with the following snippet:

     

LOCATION=”${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}”
IDENTITY=”Developer ID Application: [INSERT YOUR IDENTITY NAME HERE]”
find “$LOCATION” -name ‘*.framework’ -exec codesign –verbose –force –sign “$IDENTITY” {}/Versions/Current \;
codesign –verbose –force –sign “$IDENTITY” “$LOCATION/../XPCServices/com.andymatuschak.Sparkle.SandboxService.xpc”

 

That’s it. After hitting ‘Archive’, your app should be able to auto-update itself.

References:
Codesign in Mavericks and Xcode 5 (Stackoverflow)
Codesign in Mavericks and Xcode 5 (Hockeyapp)
Sparkle (Thanks Andy, for sharing such an awesome project)

Hawaiian Awesomeness

I’ve been lucky enough to spend a couple days with several friend in Oahu island. Let me just say this: Hawaii is awesome.

During january, when it’s supposed to be winter, the water temperature is perfect pitch. Wifi is great, and the food is super tasty, not sure why, yet.

Next time… Maui maybe?

IMG_0396

IMG_0394

If i practice enough…

It is a well known fact… if you wanna master a craft, you need to spend at least 10k hours practicing. Guitars aint no different… with practice comes mastery. With time… you don’t need to look where your fingers are. You just know it. You feel the position of your fingers in the fretboard.

It’s rock and roll, in its purest essence…

Guitars

Star Trek : Into Darkness

If you were looking for a new wallpaper, you’ve come to the right place. As you may know, several scenes of the new Star Trek “Into Darkness” movie were shot in the NIF… (National Ignition Facility).

The movie itself plays a twist over the original Star Trek Series, since… in the previous movie, we’ve seen an alteration in the flow of events, which led to a way different outcome.

If you haven’t gone to the cinema yet, i suggest you check it out. Seriously speaking!

 

Star Trek Into Darkness