【发布时间】:2014-07-28 17:27:24
【问题描述】:
我正在使用 RubyMotion 创建一个 OS X 应用程序。我想添加一个应用程序图标。我将我的stopwatch.png 文件复制到资源目录并在Rakefile 中指定了文件名:
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/osx'
begin
require 'bundler'
Bundler.require
rescue LoadError
end
Motion::Project::App.setup do |app|
app.name = 'Timetracker'
app.icon = 'stopwatch.png'
end
当我运行rake 时,它不会应用我的图标。我什至跑了rake build 并且创建的.app 不使用我的图标。我做错了什么?
【问题讨论】:
标签: macos rubymotion