-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cb2f76
commit 50c8712
Showing
8 changed files
with
596 additions
and
39 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 @@ | ||
./node_modules | ||
./build | ||
./update-tar-build | ||
./update-tar-build | ||
./hardware/codebase/aaeon/node_modules |
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,8 @@ | ||
#!/bin/bash | ||
|
||
if [ -z $1 ] || [ -z $2 ]; then | ||
echo "Usage: npm run build-update-tar -- <path/to/build/folder> <path/to/deploy-files.tar.gz>" | ||
else | ||
docker build -t lamassu-update -f update-tar-build/Dockerfile . | ||
docker run -v $1:/usr/app/build -v $2:/usr/app/deploy-files.tar.gz lamassu-update | ||
fi |
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 was deleted.
Oops, something went wrong.
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,20 @@ | ||
#!/usr/bin/env node | ||
|
||
const fs = require('fs-extra') | ||
const path = require('path') | ||
var rimraf = require("rimraf"); | ||
|
||
const base = process.argv[2] | ||
|
||
const isNative = m => { | ||
const isNative = fs.existsSync(path.resolve(base, m, 'build', 'Release')) | ||
|
||
// TODO this is awfully manual right now. | ||
const mappedNative = m === '@lamassu' || m === '@pokusew' | ||
|
||
return isNative || mappedNative | ||
} | ||
|
||
fs.readdirSync(base) | ||
.filter(isNative) | ||
.forEach(it => rimraf.sync(path.resolve(path.join(base, it)))) |
Oops, something went wrong.