install two ffmpeg architectures on Windows, close #558 (#561)

* install two ffmpeg architectures on Windows, close #558

* add missing function to export object
This commit is contained in:
Gleb Bahmutov
2017-10-04 21:00:11 +00:00
committed by GitHub
parent a897e3690d
commit 9505640db0
3 changed files with 23 additions and 1 deletions
+12
View File
@@ -85,6 +85,12 @@ copyAllToDist = (distDir) ->
.then ->
console.log("Finished Copying", new Date() - started)
forceNpmInstall = (packagePath, packageToInstall) ->
console.log("Force installing %s", packageToInstall)
console.log("in %s", packagePath)
la(check.unemptyString(packageToInstall), "missing package to install")
npmRun(["install", "--force", packageToInstall], packagePath)
npmInstallAll = (pathToPackages) ->
## 1,060,495,784 bytes (1.54 GB on disk) for 179,156 items
## 313,416,512 bytes (376.6 MB on disk) for 23,576 items
@@ -177,4 +183,10 @@ module.exports = {
symlinkAll
runAllCleanJs
forceNpmInstall
}
if not module.parent
console.log("demo force install")
forceNpmInstall("packages/server", "@ffmpeg-installer/win32-x64")