Esempio n. 1
0
	def stage(self, stage_dir, bundle):
		App.stage(self, stage_dir, bundle=bundle)

		contents = self.get_contents_dir()
		self.env.log(u'Copying kboot to %s' % contents)
		self.executable_path = p.join(self.contents, self.name)
		effess.copy(p.join(self.sdk_dir, 'kboot'), self.executable_path)
Esempio n. 2
0
    def stage(self, stage_dir, bundle, no_install, js_obfuscate, ignore_patterns):
        App.stage(self, stage_dir, bundle=bundle, no_install=no_install, js_obfuscate=js_obfuscate, ignore_patterns=ignore_patterns)

        contents = self.get_contents_dir()
        self.env.log(u'Copying tiboot to %s' % contents)
        self.executable_path = p.join(self.contents, self.name)
        effess.copy(p.join(self.sdk_dir, 'tiboot'), self.executable_path)
Esempio n. 3
0
	def stage(self, stage_dir, bundle):
		App.stage(self, stage_dir, bundle=bundle)

		contents = self.get_contents_dir()
		self.env.log(u'Copying kboot.exe to %s' % contents);
		effess.copy(p.join(self.sdk_dir, 'kboot.exe'),
			p.join(contents, '%s.exe' % self.name))
Esempio n. 4
0
    def stage(self, stage_dir, bundle):
        App.stage(self, stage_dir, bundle=bundle)

        contents = self.get_contents_dir()
        self.env.log(u'Copying kboot to %s' % contents)
        self.executable_path = p.join(self.contents, self.name)
        effess.copy(p.join(self.sdk_dir, 'kboot'), self.executable_path)
Esempio n. 5
0
    def stage(self, stage_dir, bundle, no_install, js_obfuscate):
        if not stage_dir.endswith('.app'):
            stage_dir += '.app'

        App.stage(self,
                  stage_dir,
                  bundle=bundle,
                  no_install=no_install,
                  js_obfuscate=js_obfuscate)

        defaults_exec = "defaults write " + self.id + " WebKitDeveloperExtras -bool true"
        os.system(defaults_exec)

        self.env.log(u'Copying kboot to %s' % self.contents)
        self.executable_path = p.join(self.contents, 'MacOS', self.name)
        effess.copy(p.join(self.sdk_dir, 'kboot'), self.executable_path)

        self.env.log(u'Copying Mac resources to %s' % self.contents)
        # Copy Info.plist to Contents
        plist_file = p.join(self.contents, 'Info.plist')
        effess.copy(p.join(self.sdk_dir, 'Info.plist'), plist_file)
        effess.replace_vars(
            plist_file, {
                'APPEXE': self.name,
                'APPNAME': self.name,
                'APPICON': 'titanium.icns',
                'APPID': self.id,
                'APPNIB': 'MainMenu',
                'APPVER': self.version,
                'APPVERSHORT': self.version
            })

        lproj_dir = p.join(self.contents, 'Resources', 'English.lproj')
        effess.copy_to_dir(p.join(self.sdk_dir, 'MainMenu.nib'), lproj_dir)

        # If there is an icon defined, create a custom titanium.icns file
        if hasattr(self, 'image'):
            self.env.run([
                p.join(self.sdk_dir, 'makeicns'), '-in',
                p.join(self.contents, 'Resources', self.image), '-out',
                p.join(lproj_dir, 'titanium.icns')
            ])
        else:
            effess.copy_to_dir(p.join(self.sdk_dir, 'titanium.icns'),
                               lproj_dir)

        # The installer also needs to have the application icon as well.
        if no_install is False:
            effess.copy_to_dir(
                p.join(lproj_dir, 'titanium.icns'),
                p.join(self.contents, 'installer', ' Installer App.app',
                       'Contents', 'Resources', 'English.lproj'))
Esempio n. 6
0
    def stage(self, stage_dir, bundle, no_install, js_obfuscate):
        App.stage(self, stage_dir, bundle=bundle, no_install=no_install, js_obfuscate=js_obfuscate)

        contents = self.get_contents_dir()
        self.env.log(u'Copying kboot.exe to %s' % contents);
        self.executable_path = p.join(contents, '%s.exe' % self.name)
        effess.copy(p.join(self.sdk_dir, 'kboot.exe'), self.executable_path)

        # The .installed file for Windows should always exist,
        # since we only ever install via the MSI installer.
        open(p.join(contents, '.installed'), 'a').close()

        self.set_executable_icon()
Esempio n. 7
0
	def stage(self, stage_dir, bundle):
		App.stage(self, stage_dir, bundle=bundle)

		contents = self.get_contents_dir()
		self.env.log(u'Copying kboot.exe to %s' % contents);
		self.executable_path = p.join(contents, '%s.exe' % self.name)
		effess.copy(p.join(self.sdk_dir, 'kboot.exe'), self.executable_path)

		# The .installed file for Windows should always exist,
		# since we only ever install via the MSI installer.
		open(p.join(contents, '.installed'), 'a').close()

		self.set_executable_icon()
Esempio n. 8
0
	def stage(self, stage_dir, bundle, no_install, js_obfuscate):
		if not stage_dir.endswith('.app'):
			stage_dir += '.app'

		App.stage(self, stage_dir, bundle=bundle, no_install=no_install, js_obfuscate=js_obfuscate)

		defaults_exec = "defaults write " + self.id + " WebKitDeveloperExtras -bool true";
		os.system(defaults_exec);

		self.env.log(u'Copying kboot to %s' % self.contents)
		self.executable_path = p.join(self.contents, 'MacOS', self.name)
		effess.copy(p.join(self.sdk_dir, 'kboot'), self.executable_path)

		self.env.log(u'Copying Mac resources to %s' % self.contents)
		# Copy Info.plist to Contents
		plist_file = p.join(self.contents, 'Info.plist')
		effess.copy(p.join(self.sdk_dir, 'Info.plist'), plist_file)
		effess.replace_vars(plist_file, {
			'APPEXE': self.name,
			'APPNAME': self.name,
			'APPICON': 'titanium.icns',
			'APPID': self.id,
			'APPNIB': 'MainMenu',
			'APPVER': self.version,
			'APPVERSHORT': self.version
		})

		lproj_dir = p.join(self.contents, 'Resources', 'English.lproj')
		effess.copy_to_dir(p.join(self.sdk_dir, 'MainMenu.nib'), lproj_dir)

		# If there is an icon defined, create a custom titanium.icns file
		if hasattr(self, 'image'):
			self.env.run([
				p.join(self.sdk_dir, 'makeicns'),
				'-in', p.join(self.contents, 'Resources', self.image),
				'-out', p.join(lproj_dir, 'titanium.icns')
			])
		else:
			effess.copy_to_dir(p.join(self.sdk_dir, 'titanium.icns'), lproj_dir)

		# The installer also needs to have the application icon as well.
		if no_install is False:
			effess.copy_to_dir(p.join(lproj_dir, 'titanium.icns'),
				p.join(self.contents, 'installer',' Installer App.app', 'Contents',
					'Resources', 'English.lproj'))
Esempio n. 9
0
	def stage(self, stage_dir, bundle):
		if not stage_dir.endswith('.app'):
			stage_dir += '.app'

		App.stage(self, stage_dir, bundle=bundle)

		self.env.log(u'Copying kboot to %s' % self.contents)
		effess.copy(p.join(self.sdk_dir, 'kboot'),
			p.join(self.contents, 'MacOS', self.name))

		self.env.log(u'Copying Mac resources to %s' % self.contents)
		# Copy Info.plist to Contents
		plist_file = p.join(self.contents, 'Info.plist')
		effess.copy(p.join(self.sdk_dir, 'Info.plist'), plist_file)
		effess.replace_vars(plist_file, {
			'APPEXE': self.name,
			'APPNAME': self.name,
			'APPICON': 'titanium.icns',
			'APPID': self.id,
			'APPNIB': 'MainMenu',
			'APPVER': self.version
		})

		lproj_dir = p.join(self.contents, 'Resources', 'English.lproj')
		effess.copy_to_dir(p.join(self.sdk_dir, 'MainMenu.nib'), lproj_dir)

		# If there is an icon defined, create a custom titanium.icns file
		if hasattr(self, 'image'):
			self.env.run('"%s" -in "%s" -out "%s"' % (
				p.join(self.sdk_dir, 'makeicns'),
				p.join(self.contents, 'Resources', self.image),
				p.join(lproj_dir, 'titanium.icns')))
		else:
			effess.copy_to_dir(p.join(self.sdk_dir, 'titanium.icns'), lproj_dir)

		# The installer also needs to have the application icon as well.
		effess.copy_to_dir(p.join(lproj_dir, 'titanium.icns'),
			p.join(self.contents, 'installer',' Installer App.app', 'Contents',
				'Resources', 'English.lproj'))