Sha256: fc7faf6a93be3b2ac479f962c2dfd7d4208f682d8d166d081856fdcaf6367229

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 KB

Contents

# frozen_string_literal: true

$:.unshift('/Library/RubyMotion/lib')
$:.unshift('~/.rubymotion/rubymotion-templates')

require 'motion/project/template/osx'

SHORT_VERSION = '0.5'

begin
  require 'bundler'
  Bundler.require
rescue LoadError
end

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = 'sample-app'
  app.deployment_target = '10.14'
  app.info_plist['CFBundleIconName'] = 'AppIcon'
  app.codesign_certificate = '-' # use an ad-hoc signing certificate

  app.short_version = SHORT_VERSION # CFBundleShortVersionString
  app.version = `git rev-list --all | wc -l`.strip.to_i.to_s # the build number

  app.sparkle do
    publish :base_url, 'http://example.com/your_app_folder/releases/'
    publish :public_key, '1/eJupmw4JH+iFQIlh99nS2qvwYealJsNzFN3LL6FFE=x'
    publish :releases_folder, 'tmp/releases/v2.2/'

    # Appcast Feed
    # publish :feed_base_url, 'http://downloads.example.com/releases' # defaults to base_url
    publish :feed_filename, 'releases.xml' # default

    # Release Notes
    publish :notes_base_url, 'http://downloads.example.com/releases_notes/' # defaults to base_url
    # publish :notes_filename, 'test'

    # App Package
    # publish :package_base_url, 'http://downloads.example.com/releases/' # defaults to base_url

    # publish :use_exported_private_key, true

    publish :account, 'motion-sparkle-sandbox.sample-app'
    publish :full_release_notes_url, 'http://example.com/full_release_notes_changed_again.html'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
motion-sparkle-sandbox-2.2 sample-app/Rakefile
motion-sparkle-sandbox-2.1.1 sample-app/Rakefile