Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Add Visual C++ Redistributable and postinstall script
Browse files Browse the repository at this point in the history
* Add Visual C++ Redistributable and postinstall script
* Update protocol.json
* Update protocol.json

* Fix travis error
  • Loading branch information
Jesus David García Gomez authored and molant committed Oct 2, 2017
1 parent 30c2ed8 commit 7dc8188
Show file tree
Hide file tree
Showing 7 changed files with 4,224 additions and 1,430 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ before_script:
- npm install -g typings
- typings install

install:
- npm install --ignore-scripts

script:
- gulp buildscript
1 change: 1 addition & 0 deletions native/NetworkProxy/NetworkProxy.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link>
<PostBuildEvent>
<Command>
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "out/src/edgeAdapter.js",
"files": [
"out\\lib",
"out\\src"
"out\\src",
"redistributable",
"scripts"
],
"keywords": [
"edge",
Expand Down Expand Up @@ -37,5 +39,12 @@
"typescript": "1.8.7",
"typings": "1.0.4",
"yargs": "^4.6.0"
},
"cpu": [
"x64",
"x32"
],
"scripts": {
"postinstall": "node scripts/postinstall.js"
}
}
Binary file added redistributable/VC_redist.x64.exe
Binary file not shown.
Binary file added redistributable/VC_redist.x86.exe
Binary file not shown.
11 changes: 11 additions & 0 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const child = require('child_process');
const path = require('path');

const arch = process.arch;

console.log(`Installing Microsoft Visual C++ 2017 Redistributable (${arch})`);
const command = `${path.join(__dirname, '..', 'redistributable', `VC_redist.${arch}.exe`)} /quiet /norestart`;

child.execSync(command);

console.log(`Microsoft Visual C++ 2017 Redistributable (${arch}) Installed`);
5,628 changes: 4,199 additions & 1,429 deletions src/chromeProtocol/protocol.json

Large diffs are not rendered by default.

0 comments on commit 7dc8188

Please sign in to comment.