class Omnibus::Packager::APPX
Public Instance Methods
pack_command(appx_file)
click to toggle source
Get the shell command to run pack in order to create a an appx package
@return [String]
# File lib/omnibus/packagers/appx.rb, line 86 def pack_command(appx_file) "makeappx.exe pack /d \"#{windows_safe_path(project.install_dir)}\" /o /p #{appx_file}" end
package_name()
click to toggle source
@see Base#package_name
# File lib/omnibus/packagers/appx.rb, line 54 def package_name log.debug(log_key) { "#{self.class}##{__method__} - package_name: #{project.package_name}" } log.debug(log_key) { "#{self.class}##{__method__} - build_version: #{project.build_version}" } log.debug(log_key) { "#{self.class}##{__method__} - build_iteration: #{project.build_iteration}" } log.debug(log_key) { "#{self.class}##{__method__} - Config.windows_arch: #{Config.windows_arch}" } "#{project.package_name}-#{project.build_version}-#{project.build_iteration}-#{Config.windows_arch}.appx" end
write_manifest_file()
click to toggle source
Write the manifest file into the staging directory.
@return [void]
# File lib/omnibus/packagers/appx.rb, line 68 def write_manifest_file render_template(resource_path("AppxManifest.xml.erb"), destination: "#{windows_safe_path(project.install_dir)}/AppxManifest.xml", variables: { name: project.package_name, friendly_name: project.friendly_name, version: windows_package_version, maintainer: project.maintainer, certificate_subject: certificate_subject.gsub('"', """), }) end