motion-sparkle icon indicating copy to clipboard operation
motion-sparkle copied to clipboard

set the build_mode to :release early

Open digitalmoksha opened this issue 9 years ago • 2 comments

The RM Rakefile can have different settings for development and release, for example by using

app.release do
end

use App.config_without_setup.build_mode = :release to make sure we pick up any of those values

digitalmoksha avatar Jul 19 '15 14:07 digitalmoksha

Interesting, never ran into that before and happy to support it.

I wonder if there's any way to set this somewhere allowing us to reuse it (or just overwrite it) with a shorter syntax. Do you have any ideas?

Thanks!

webcracy avatar Aug 07 '15 11:08 webcracy

Hmm, i'm not sure what you mean by reuse it. Here is my use case:

  app.development do
    app.name                = "#{app.name}-dev"
    app.identifier          = "#{app.identifier}-dev"
    app.version            << "-#{`git rev-parse --abbrev-ref HEAD`}".strip # add the branch name
  end
  app.release do
    if ENV['store'] == 'mas'
      app.codesign_certificate  = ENV['mas_codesign_certificate']
    else
      app.codesign_certificate  = ENV['paddle_codesign_certificate']
    end
  end

digitalmoksha avatar Aug 07 '15 11:08 digitalmoksha