Skip to content

Commit

Permalink
Added auto updater and updated data files to V6.0.0.30
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltris committed May 13, 2020
1 parent 172b754 commit f9ecbfa
Show file tree
Hide file tree
Showing 32 changed files with 19,662 additions and 10,058 deletions.
11 changes: 3 additions & 8 deletions Build/Data/Updating.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ index.js <---- contains lang data ("macro_cate_already_exist")
manifest.js
vendor.js

- Download the official software
- Format the above files (0.json / index.js) and use them to update the following:

- Find string such as "macro_cate_already_exist" and update /Build/Data/i18n/langs/zh.jon/en.json
- Update keys.json by searching for "mode-layer-temp-switch"
- Copy all files from /driver/device/ to /Build/Data/device/ (rename the chinese named folder)
- In Program.cs call CMFile.DumpLighting() with "/driver/res/data/le/" as the path. Copy the dumped files from the created "dump" folder.
- Use https://jsonformatter.curiousconcept.com/ where applicable to fix up quotation marks on files (lang, keys.json is a manual fix)
- Navigate to "C:\Program Files (x86)\GK6XPlus Driver\CMSEngine\driver\" and create a copy of 0.js / index.js renamed to 0.formatted.js / index.formatted.js
- Format both files using https://beautifier.io/
- Use the command "update_data C:\Program Files (x86)\GK6XPlus Driver"
192 changes: 96 additions & 96 deletions Build/Data/device/655491165/config.json
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
{
"DeviceType": 0,
"DriverLEKey": 67,
"ShowScalePlus": 0.15,
"ShowOffsetLeft": 0,
"ShowOffsetTop": 0,
"IsFnKeySet": true,
"FuncTable":[{
"id": 0,
"name": "设置",
"lang": "menu_config_kb",
"icon": "el-icon-kb-keyboard",
"component": "/ConfigKB",
"visible": true,
"disable": false
},{
"id": 1,
"name": "灯效库",
"lang": "menu_le_lib",
"icon": "el-icon-kb-light",
"component": "/Le",
"visible": true,
"disable": false
},{
"id": 2,
"name": "宏管理",
"icon": "el-icon-document",
"lang": "menu_macro_lib",
"component": "/Macro",
"visible": true,
"disable": false
}],
"QuickSelect":[{
"title": "第一行",
"lang": "line_first",
"lcodes": [0,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17]
},{
"title": "第二行",
"lang": "line_second",
"lcodes": [23,24,25,26,27,28,29,30,31,32,36,33,34,22,37,38,39,40,41,42,43]
},{
"title": "第三行",
"lang": "line_third",
"lcodes": [47,52,53,54,45,48,49,51,46,50,44,55,56,58,59,60,61,65,62,63,64]
},{
"title": "第四行",
"lang": "line_fourth",
"lcodes": [67,69,70,71,72,73,74,75,68,79,76,77,66,84,85,86]
},{
"title": "第五行",
"lang": "line_fifth",
"lcodes": [88,102,94,92,96,95,93,91,90,97,98,99,104,106,107,108,109]
},{
"title": "第六行",
"lang": "line_sixth",
"lcodes": [121,122,110,112,111,124,120,116,127,125,126,128,130]
}],
"UserManual":[{
"title_lang": "layer_oper",
"items":[{
"key": "Fn+F10",
"desc_lang": "change_onboard_layer_1"
},{
"key": "Fn+F11",
"desc_lang": "change_onboard_layer_2"
},{
"key": "Fn+F12",
"desc_lang": "change_onboard_layer_3"
},{
"key": "Fn+F9",
"desc_lang": "change_driver_layer_1"
}]
},{
"title_lang": "le_oper",
"items":[{
"key": "Fn+F5/F6",
"desc_lang": "change_std_le"
},{
"key": "Fn+[",
"desc_lang": "change_le_brightness_inc"
},{
"key": "Fn+]",
"desc_lang": "change_le_brightness_dec"
},{
"key": "Fn+↑",
"desc_lang": "change_le_speed_inc"
},{
"key": "Fn+↓",
"desc_lang": "change_le_speed_dec"
}]
},{
"title_lang": "system_oper",
"items":[{
"key": "Fn+ESC+Q",
"desc_lang": "clear_all_config"
}]
}]
"DeviceType": 0,
"DriverLEKey": 67,
"ShowScalePlus": 0.15,
"ShowOffsetLeft": 0,
"ShowOffsetTop": 0,
"IsFnKeySet": true,
"FuncTable": [{
"id": 0,
"name": "设置",
"lang": "menu_config_kb",
"icon": "el-icon-kb-keyboard",
"component": "/ConfigKB",
"visible": true,
"disable": false
}, {
"id": 1,
"name": "灯效库",
"lang": "menu_le_lib",
"icon": "el-icon-kb-light",
"component": "/Le",
"visible": true,
"disable": false
}, {
"id": 2,
"name": "宏管理",
"icon": "el-icon-document",
"lang": "menu_macro_lib",
"component": "/Macro",
"visible": true,
"disable": false
}],
"QuickSelect": [{
"title": "第一行",
"lang": "line_first",
"lcodes": [0, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
}, {
"title": "第二行",
"lang": "line_second",
"lcodes": [23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 36, 33, 34, 22, 37, 38, 39, 40, 41, 42, 43]
}, {
"title": "第三行",
"lang": "line_third",
"lcodes": [47, 52, 53, 54, 45, 48, 49, 51, 46, 50, 44, 55, 56, 58, 59, 60, 61, 65, 62, 63, 64]
}, {
"title": "第四行",
"lang": "line_fourth",
"lcodes": [67, 69, 70, 71, 72, 73, 74, 75, 68, 79, 76, 77, 66, 84, 85, 86]
}, {
"title": "第五行",
"lang": "line_fifth",
"lcodes": [88, 102, 94, 92, 96, 95, 93, 91, 90, 97, 98, 99, 104, 106, 107, 108, 109]
}, {
"title": "第六行",
"lang": "line_sixth",
"lcodes": [121, 122, 110, 112, 111, 124, 120, 116, 127, 125, 126, 128, 130]
}],
"UserManual": [{
"title_lang": "layer_oper",
"items": [{
"key": "Fn+F10",
"desc_lang": "change_onboard_layer_1"
}, {
"key": "Fn+F11",
"desc_lang": "change_onboard_layer_2"
}, {
"key": "Fn+F12",
"desc_lang": "change_onboard_layer_3"
}, {
"key": "Fn+F9",
"desc_lang": "change_driver_layer_1"
}]
}, {
"title_lang": "le_oper",
"items": [{
"key": "Fn+F5/F6",
"desc_lang": "change_std_le"
}, {
"key": "Fn+[",
"desc_lang": "change_le_brightness_inc"
}, {
"key": "Fn+]",
"desc_lang": "change_le_brightness_dec"
}, {
"key": "Fn+↑",
"desc_lang": "change_le_speed_inc"
}, {
"key": "Fn+↓",
"desc_lang": "change_le_speed_dec"
}]
}, {
"title_lang": "system_oper",
"items": [{
"key": "Fn+ESC+Q",
"desc_lang": "clear_all_config"
}]
}]
}
24 changes: 0 additions & 24 deletions Build/Data/device/655491248/data/keymap.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,18 +610,6 @@
"Height": 54
}
},
{
"KeyName": "]",
"Show": "]",
"LogicCode": 54,
"LocationCode": 57,
"Position": {
"Left": 767,
"Top": 246,
"Width": 54,
"Height": 54
}
},
{
"KeyName": "|",
"Show": "|",
Expand Down Expand Up @@ -658,18 +646,6 @@
"Height": 54
}
},
{
"KeyName": "`",
"Show": "`",
"LogicCode": 58,
"LocationCode": 22,
"Position": {
"Left": 70,
"Top": 188,
"Width": 54,
"Height": 54
}
},
{
"KeyName": ",",
"Show": ",",
Expand Down
Loading

0 comments on commit f9ecbfa

Please sign in to comment.