mirror of https://github.com/docker/docs.git
Fix bug where plist would not be modifyed for try on desktop
This commit is contained in:
parent
65c03188e4
commit
ff39470d37
42
Gruntfile.js
42
Gruntfile.js
|
@ -97,7 +97,8 @@ module.exports = function (grunt) {
|
||||||
platform: 'darwin',
|
platform: 'darwin',
|
||||||
arch: 'x64',
|
arch: 'x64',
|
||||||
asar: true,
|
asar: true,
|
||||||
'app-bundle-id': 'com.kitematic.kitematic'
|
'app-bundle-id': 'com.kitematic.kitematic',
|
||||||
|
'app-version': packagejson.version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -269,6 +270,41 @@ module.exports = function (grunt) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
plistbuddy: {
|
||||||
|
addBundleURLTypes: {
|
||||||
|
method: 'Add',
|
||||||
|
entry: 'CFBundleURLTypes',
|
||||||
|
type: 'array',
|
||||||
|
src: '<%= OSX_FILENAME %>/Contents/Info.plist'
|
||||||
|
},
|
||||||
|
addBundleURLTypesDict: {
|
||||||
|
method: 'Add',
|
||||||
|
entry: 'CFBundleURLTypes:0',
|
||||||
|
type: 'dict',
|
||||||
|
src: '<%= OSX_FILENAME %>/Contents/Info.plist'
|
||||||
|
},
|
||||||
|
addBundleURLTypesDictName: {
|
||||||
|
method: 'Add',
|
||||||
|
entry: 'CFBundleURLTypes:0:CFBundleURLName',
|
||||||
|
type: 'string',
|
||||||
|
value: 'Docker App Protocol',
|
||||||
|
src: '<%= OSX_FILENAME %>/Contents/Info.plist'
|
||||||
|
},
|
||||||
|
addBundleURLTypesDictSchemes: {
|
||||||
|
method: 'Add',
|
||||||
|
entry: 'CFBundleURLTypes:0:CFBundleURLSchemes',
|
||||||
|
type: 'array',
|
||||||
|
src: '<%= OSX_FILENAME %>/Contents/Info.plist'
|
||||||
|
},
|
||||||
|
addBundleURLTypesDictSchemesDocker: {
|
||||||
|
method: 'Add',
|
||||||
|
entry: 'CFBundleURLTypes:0:CFBundleURLSchemes:0',
|
||||||
|
type: 'string',
|
||||||
|
value: 'docker',
|
||||||
|
src: '<%= OSX_FILENAME %>/Contents/Info.plist'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
shell: {
|
shell: {
|
||||||
electron: {
|
electron: {
|
||||||
command: electron + ' ' + 'build',
|
command: electron + ' ' + 'build',
|
||||||
|
@ -287,7 +323,7 @@ module.exports = function (grunt) {
|
||||||
'codesign --deep -v -f -s "<%= IDENTITY %>" <%= OSX_FILENAME_ESCAPED %>/Contents/Frameworks/*',
|
'codesign --deep -v -f -s "<%= IDENTITY %>" <%= OSX_FILENAME_ESCAPED %>/Contents/Frameworks/*',
|
||||||
'codesign -v -f -s "<%= IDENTITY %>" <%= OSX_FILENAME_ESCAPED %>',
|
'codesign -v -f -s "<%= IDENTITY %>" <%= OSX_FILENAME_ESCAPED %>',
|
||||||
'codesign -vvv --display <%= OSX_FILENAME_ESCAPED %>',
|
'codesign -vvv --display <%= OSX_FILENAME_ESCAPED %>',
|
||||||
'codesign -v --verify <%= OSX_FILENAME_ESCAPED %>',
|
'codesign -v --verify <%= OSX_FILENAME_ESCAPED %>'
|
||||||
].join(' && '),
|
].join(' && '),
|
||||||
},
|
},
|
||||||
zip: {
|
zip: {
|
||||||
|
@ -328,7 +364,7 @@ module.exports = function (grunt) {
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
grunt.registerTask('release', ['clean:release', 'download-binary', 'download-boot2docker-iso', 'babel', 'less', 'copy:dev', 'electron:windows', 'copy:windows', 'rcedit:exes', 'create-windows-installer', 'rename:installer']);
|
grunt.registerTask('release', ['clean:release', 'download-binary', 'download-boot2docker-iso', 'babel', 'less', 'copy:dev', 'electron:windows', 'copy:windows', 'rcedit:exes', 'create-windows-installer', 'rename:installer']);
|
||||||
} else {
|
} else {
|
||||||
grunt.registerTask('release', ['clean:release', 'download-binary', 'download-boot2docker-iso', 'babel', 'less', 'copy:dev', 'electron:osx', 'copy:osx', 'shell:sign', 'shell:zip']);
|
grunt.registerTask('release', ['clean:release', 'download-binary', 'download-boot2docker-iso', 'babel', 'less', 'copy:dev', 'electron:osx', 'copy:osx', 'plistbuddy', 'shell:sign', 'shell:zip']);
|
||||||
}
|
}
|
||||||
|
|
||||||
process.on('SIGINT', function () {
|
process.on('SIGINT', function () {
|
||||||
|
|
|
@ -80,6 +80,7 @@
|
||||||
"grunt-electron-installer": "^0.33.0",
|
"grunt-electron-installer": "^0.33.0",
|
||||||
"grunt-if-missing": "^1.0.0",
|
"grunt-if-missing": "^1.0.0",
|
||||||
"grunt-newer": "^1.1.1",
|
"grunt-newer": "^1.1.1",
|
||||||
|
"grunt-plistbuddy": "^0.1.1",
|
||||||
"grunt-rcedit": "^0.3.1",
|
"grunt-rcedit": "^0.3.1",
|
||||||
"grunt-rename": "^0.1.4",
|
"grunt-rename": "^0.1.4",
|
||||||
"grunt-shell": "^1.1.2",
|
"grunt-shell": "^1.1.2",
|
||||||
|
|
Loading…
Reference in New Issue