Fixed macos build
This commit is contained in:
parent
80095e4f78
commit
22f957eb5c
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,7 +1,3 @@
|
|||||||
/build/.gclient
|
|
||||||
/build/.gclient_entries
|
|
||||||
/build/depot_tools/
|
|
||||||
/build/src/
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/releases
|
/releases
|
||||||
/node_modules
|
/node_modules
|
||||||
|
8
build.js
8
build.js
@ -141,11 +141,11 @@ ${platform === 'arm' ? 'target_cpu=["arm"]' : ''}
|
|||||||
|
|
||||||
await execAsync('gclient', 'sync', '--with_branch_heads');
|
await execAsync('gclient', 'sync', '--with_branch_heads');
|
||||||
if (program.arch === 'ia32') {
|
if (program.arch === 'ia32') {
|
||||||
await execAsync('gn', 'gen', 'out/Default', '--args="is_debug=false is_component_ffmpeg=true is_official_build=true target_cpu=\\"x86\\" ffmpeg_branding=\\"Chrome\\""');
|
await execAsync('gn', 'gen', 'out/Default', '--args="is_debug=false enable_nacl=false is_component_ffmpeg=true proprietary_codecs=true is_official_build=true target_cpu=\\"x86\\" ffmpeg_branding=\\"Chrome\\""');
|
||||||
} else if (program.arch === 'x64') {
|
} else if (program.arch === 'x64') {
|
||||||
await execAsync('gn', 'gen', 'out/Default', '--args="is_debug=false is_component_ffmpeg=true is_official_build=true target_cpu=\\"x64\\" ffmpeg_branding=\\"Chrome\\""');
|
await execAsync('gn', 'gen', 'out/Default', '--args="is_debug=false enable_nacl=false is_component_ffmpeg=true proprietary_codecs=true is_official_build=true target_cpu=\\"x64\\" ffmpeg_branding=\\"Chrome\\""');
|
||||||
}else if (program.arch === 'arm') {
|
} else if (program.arch === 'arm') {
|
||||||
await execAsync('gn', 'gen', 'out/Default', '--args="is_debug=false is_component_ffmpeg=true is_official_build=true target_cpu=\\"arm\\" ffmpeg_branding=\\"Chrome\\""');
|
await execAsync('gn', 'gen', 'out/Default', '--args="is_debug=false enable_nacl=false is_component_ffmpeg=true proprietary_codecs=true is_official_build=true target_cpu=\\"arm\\" ffmpeg_branding=\\"Chrome\\""');
|
||||||
}
|
}
|
||||||
await execAsync('autoninja', '-C', 'out/Default', libName);
|
await execAsync('autoninja', '-C', 'out/Default', libName);
|
||||||
const zipFile = new yazl.ZipFile();
|
const zipFile = new yazl.ZipFile();
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nwjs-ffmpeg-prebuilt",
|
"name": "nwjs-ffmpeg-prebuilt",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user