Class: Releasy::Builders::OsxApp

Inherits:
Builder
  • Object
show all
Includes:
Mixins::CanExcludeEncoding, Mixins::HasGemspecs
Defined in:
lib/releasy/builders/osx_app.rb

Overview

Builds an OS X application bundle.

Examples:

Releasy::Project.new do
  name "My App"
  add_build :osx_app do
    wrapper "gosu-mac-wrapper-0.7.41.tar.gz" # Required, see {#wrapper=}.
    url "com.cheese.myapp"                   # Required
    icon "media/icon.icns"                   # Optional
    exclude_encoding                         # Optional
    add_package :dmg                         # Optional
  end
end

Constant Summary collapse

TYPE =
:osx_app
DEFAULT_FOLDER_SUFFIX =
"OSX"
BINARY_GEMS =

Binary gems included in app.

%w[gosu texplay chipmunk]
ICON_EXTENSION =

Icon type used in the app.

".icns"
SOURCE_GEMS_TO_REMOVE =

Source gems included in app that we should remove.

%w[chingu]
REQUIRED_ENCODING_FILES =

Encoding files that are required, even if we don’t need most of them if we select to Mixins::CanExcludeEncoding#exclude_encoding.

%w[encdb.bundle iso_8859_1.bundle utf_16le.bundle trans/single_byte.bundle trans/transdb.bundle trans/utf_16_32.bundle]
VALID_GOSU_WRAPPER =
/gosu-mac-wrapper-\d\.\d\.\d+.tar.gz/

Constants included from Mixins::Log

Mixins::Log::DEFAULT_LOG_LEVEL, Mixins::Log::LOG_LEVELS

Instance Attribute Summary collapse

Attributes included from Mixins::HasGemspecs

#gemspecs

Attributes inherited from Builder

#project, #suffix

Method Summary

Methods included from Mixins::CanExcludeEncoding

#exclude_encoding

Methods inherited from Builder

#initialize, #type, #valid_for_platform?

Methods included from Mixins::Log

log_level, log_level=

Methods included from Mixins::HasPackagers

#add_package

Constructor Details

This class inherits a constructor from Releasy::Builders::Builder

Instance Attribute Details

#iconString

Returns Optional filename of icon to show on app (.icns).

Returns:

  • (String)

    Optional filename of icon to show on app (.icns).



22
23
24
# File 'lib/releasy/builders/osx_app.rb', line 22

def icon
  @icon
end

#urlString

Returns Inverse url of application (e.g. ‘org.supergames.blasterbotsfrommars’).

Returns:

  • (String)

    Inverse url of application (e.g. ‘org.supergames.blasterbotsfrommars’)



47
48
49
# File 'lib/releasy/builders/osx_app.rb', line 47

def url
  @url
end

#wrapperString

Returns Name of .app directory used as the framework for osx app release.

Returns:

  • (String)

    Name of .app directory used as the framework for osx app release.



45
46
47
# File 'lib/releasy/builders/osx_app.rb', line 45

def wrapper
  @wrapper
end