-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRakefile
60 lines (50 loc) · 1.68 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
#
# % rake config で細かい設定がわかる
#
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/osx'
require 'rm-digest'
begin
require 'bundler'
Bundler.require
rescue LoadError
end
Motion::Project::App.setup do |app|
#
# Info.plistの設定が肝心なので以下のように細かく設定する。
#
app.name = 'Gyaim'
app.icon = 'Gyaim.png'
app.identifier = "com.pitecan.inputmethod.Gyaim"
app.frameworks << 'InputMethodKit'
app.frameworks << 'Security'
#
# RubyMotionの機能で設定しきれないものは直接指定
#
app.info_plist['tsInputMethodCharacterRepertoireKey'] = [
"Hira", "Latn"
]
app.info_plist['InputMethodConnectionName'] = "Gyaim_Connection"
app.info_plist['InputMethodServerControllerClass'] = "GyaimController"
app.info_plist['InputMethodServerDelegateClass'] = "GyaimController"
app.info_plist['LSApplicationCategoryType'] = "public.app-category.productivity"
app.info_plist['LSBackgroundOnly'] = true
app.info_plist['NSMainNibFile'] = "Gyaim"
app.info_plist['tsInputMethodIconFileKey'] = "icon.pdf"
app.info_plist['CFBundleDevelopmentRegion'] = "English"
app.info_plist['ComponentInputModeDict'] = {
'tsInputModeListKey' => {
'com.apple.inputmethod.Japanese' => {
"TISInputSourceID" => "com.pitecan.inputmethod.Gyaim.Japanese",
"TISIntendedLanguage" => "ja",
"tsInputModeScriptKey" => "smJapanese",
"tsInputModePrimaryInScriptKey" => true
}
},
"tsVisibleInputModeOrderedArrayKey" => [
"com.apple.inputmethod.Japanese"
]
}
# app.files_dependencies 'app/Google.rb' => 'app/GyaimController.rb' # ????
end