Skip to content
This repository was archived by the owner on Jun 26, 2019. It is now read-only.

Commit b504e16

Browse files
author
Max Waterman
committed
Adding xpk target to gruntfile, plus signature file.
1 parent b373129 commit b504e16

File tree

4 files changed

+46
-27
lines changed

4 files changed

+46
-27
lines changed

Gruntfile.js

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ module.exports = function (grunt) {
5151
files: [
5252
{ expand: true, cwd: '.', src: ['app/lib/**'], dest: 'build/' },
5353
{ expand: true, cwd: '.', src: ['app/audio/**'], dest: 'build/' },
54+
{ expand: true, cwd: '.', src: ['app/data/**'], dest: 'build/' },
55+
{ expand: true, cwd: '.', src: ['app/README.txt'], dest: 'build/' },
5456
{ expand: true, cwd: '.', src: ['LICENSE'], dest: 'build/app/' },
55-
{ expand: true, cwd: '.', src: ['README.txt'], dest: 'build/app/' },
5657
{ expand: true, cwd: '.', src: ['app/_locales/**'], dest: 'build/' }
5758
]
5859
},
60+
5961
wgt: {
6062
files: [
6163
{ expand: true, cwd: 'build/app/', src: ['**'], dest: 'build/wgt/' },
@@ -99,6 +101,29 @@ module.exports = function (grunt) {
99101

100102
},
101103

104+
xpk: {
105+
files: [
106+
{ expand: true, cwd: 'build/app/', src: ['**'], dest: 'build/xpk/' },
107+
{ expand: true, cwd: '.', src: ['icon*.png'], dest: 'build/xpk/' }
108+
]
109+
},
110+
111+
xpk_manifest:
112+
{
113+
files: [
114+
{ expand: true, cwd: 'data/tizen-xpk/', src: ['manifest.json'], dest: 'build/xpk/' }
115+
],
116+
117+
options:
118+
{
119+
processContent: function(content, srcpath)
120+
{
121+
return grunt.template.process(content);
122+
}
123+
}
124+
125+
},
126+
102127
sdk: {
103128
files: [
104129
{ expand: true, cwd: 'build/app/', src: ['**'], dest: 'build/sdk/' },
@@ -156,7 +181,7 @@ module.exports = function (grunt) {
156181
files: 'build/sdk/**',
157182
stripPrefix: 'build/sdk/',
158183
outDir: 'build',
159-
suffix: '.wgt',
184+
suffix: '.wgt'
160185
}
161186
},
162187

@@ -217,7 +242,9 @@ module.exports = function (grunt) {
217242

218243
grunt.registerTask('crx', ['dist', 'copy:crx', 'copy:crx_manifest']);
219244
grunt.registerTask('wgt', ['dist', 'copy:wgt', 'copy:wgt_config', 'package:wgt']);
245+
grunt.registerTask('xpk', ['dist', 'copy:xpk', 'copy:xpk_manifest']);
220246
grunt.registerTask('sdk', [
247+
'clean',
221248
'imagemin:dist',
222249
'copy:common',
223250
'copy:sdk',

data/android-xpk/manifest.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

data/tizen-xpk/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"name": "<%= packageInfo.name %>",
1919
"permissions": [ ],
2020
"version": "<%= packageInfo.version %>",
21-
"homepage_url" : "https://01.org/webapps/content/hang-man",
22-
"update_url" : "https://01.org/webapps/content/hang-man/update.xml"
21+
"homepage_url" : "https://01.org/webapps/content/annex",
22+
"update_url" : "https://01.org/webapps/content/annex/update.xml"
2323
}

data/tizen-xpk/signature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-----BEGIN RSA PRIVATE KEY-----
2+
MIICWwIBAAKBgQC9Lqbj+h2QwH7S7++UsWhvW1jC0hIM178BwQol0OzUGBvYdzl8
3+
ds9lcXtuQWSB+NvpbR1/OC4LYqUFf+maWaStoks4upmSfgXGXMgEQ6oXnSEaAxM+
4+
exytvv41yYh8r+bC0BsIYba6TT3zC9CCZ4y8/9VFUJALBWnEkzMtybFbUQIDAQAB
5+
AoGAWQetbrh0VXzhsm9MNpPO7Cj2+qhV6klWEINCPU23RpEZ+aMSIKrhK4JebiLE
6+
JA5zn8TEDuznbmA7/PyXeRYa0vTdIPprb4M8DVSSjdteh1c41tQAlkNrtpPd3u64
7+
kF93QhoTwQXDfAKH5uKJ3Vz/SO/1fk7WJrmbT3l2E6P8QAECQQDbxnstTlVjcalQ
8+
XSs+7oOw21Y2FcwtoaoID2iQHv6bwfTjco3+iVafIvrKxl70tGOYIwb6qfJZUou9
9+
u6GnIlFRAkEA3F1II35z2PWfHDBkmR+f5OZ552PasCOP1Av6p9PpJziYl39dkpF1
10+
5Bd4yjjN0JnIFqXbbPQT7SpSC0HRecvqAQJAO579vY25pm+oQg/0cm8cNLdcDPIe
11+
4OYxjVw4vphZ9AFLIQTrtnilkihYJvhnvDTPq+8crpW6FDdLh55GPWQW8QJAUyZb
12+
pxD6853S2NclzmWRdtTEoNwb06THi7KtdRBQBL2lTlz/2ONMQbHdoSiH+LNePbV9
13+
s4Hx1ubGKHtAaJ3aAQJAD7m0tEFxwtINRWgKCpJzXESaqy9feGXJyz36QEJGNII1
14+
IrjYF8VT3uwjBbLbGhlw8xb+S19x/mkYTGcTB3MnaQ==
15+
-----END RSA PRIVATE KEY-----

0 commit comments

Comments
 (0)