Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set the build_mode to :release early #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

digitalmoksha
Copy link
Contributor

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

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
@webcracy
Copy link
Owner

webcracy commented Aug 7, 2015

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!

@digitalmoksha
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants