Class: Releasy::Builders::OcraBuilder Abstract

Inherits:
WindowsBuilder show all
Defined in:
lib/releasy/builders/ocra_builder.rb

Overview

This class is abstract.

Functionality for a WindowsBuilder that use Ocra to build on Windows.

Constant Summary collapse

OCRA_COMMAND =
"ocra"
ICON_EXTENSION =
".ico"

Constants inherited from WindowsBuilder

WindowsBuilder::EXECUTABLE_TYPES

Constants included from Mixins::Log

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

Instance Attribute Summary collapse

Attributes inherited from WindowsBuilder

#executable_type

Attributes inherited from Builder

#project, #suffix

Instance Method Summary collapse

Methods inherited from WindowsBuilder

#effective_executable_type

Methods included from Mixins::CanExcludeEncoding

#exclude_encoding

Methods inherited from Builder

#initialize, #type

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

Optional filename of icon to show on executable/installer (.ico).

Returns:

  • (String)

    the current value of icon



10
11
12
# File 'lib/releasy/builders/ocra_builder.rb', line 10

def icon
  @icon
end

#ocra_parametersString

Returns Extra options to send to Ocra, but they are unlikely to be needed explicitly. ‘–no-enc’ is automatically used if Mixins::CanExcludeEncoding#exclude_encoding is called and ‘–console’ or ‘–window’ is used based on WindowsBuilder#executable_type.

Returns:



15
16
17
# File 'lib/releasy/builders/ocra_builder.rb', line 15

def ocra_parameters
  @ocra_parameters
end

Instance Method Details

#valid_for_platform?Boolean

Returns:

  • (Boolean)


17
# File 'lib/releasy/builders/ocra_builder.rb', line 17

def valid_for_platform?; Releasy.win_platform?; end