-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Widevine DRM signing support via the python package Castlabs EVS
- Loading branch information
1 parent
91396bf
commit 99ca2a1
Showing
5 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/dist | ||
/node_modules | ||
/windowBounds.* | ||
/windowBounds.* | ||
*.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
exports.default = async function(context) { | ||
|
||
// If we are not packaging for windows we don't sign here, just return | ||
if (context.packager.platform.name !== 'windows') { | ||
return; | ||
} | ||
|
||
// Make sure we don't leave an outdated electron.exe.sig laying about | ||
if (context.packager.appInfo.productFilename !== 'electron') { | ||
var fs = require("fs"); | ||
var path = context.appOutDir + '/electron.exe.sig' | ||
if (fs.existsSync(path)) { | ||
fs.unlinkSync(path) | ||
} | ||
} | ||
|
||
// Sign the application package | ||
var spawnSync = require("child_process").spawnSync; | ||
var vmp = spawnSync('python', [ | ||
'-m', 'castlabs_evs.vmp', 'sign-pkg', 'dist/win-unpacked' | ||
], | ||
{ | ||
stdio: 'inherit' | ||
}); | ||
|
||
if (vmp.status != 0) { | ||
throw new Error('vmp-resign.py failed with code: ' + vmp.status); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters