Skip to content

Commit

Permalink
build: remove extra archs we no longer support
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto committed Nov 29, 2024
1 parent eaecd77 commit f163ae8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
8 changes: 0 additions & 8 deletions deploy/codebase/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@ setup_board_model() {
supervisor_export_dir="$EXPORT_DIR/supervisor/$board/$model"

# Create necessary directories
mkdir -p "$board_export_dir/node_modules"
mkdir -p "$supervisor_export_dir"

# Copy supervisor configuration files for the board and model
cp "$SYSTEM_DIR/$board/$model/supervisor/conf.d/"* "$supervisor_export_dir/"

# Copy node_modules for the board
cp -R "$MACHINE_DIR/node_modules" "$board_export_dir/"

# Remove interpreted modules for the board
node "$MACHINE_DIR/deploy/remove-modules.js" "$board_export_dir/node_modules" --rem-interpreted

# Optionally copy the device config
mkdir $model_export_dir
cp "$CODEBASE_DIR/$board/$model/device_config.json" "$model_export_dir/"
Expand Down Expand Up @@ -70,7 +63,6 @@ cp $MACHINE_DIR/bin/lamassu-machine $TARGET_MACHINE_DIR/bin
cp $MACHINE_DIR/bin/cam.js $TARGET_MACHINE_DIR/bin
cp -r $MACHINE_DIR/ui $TARGET_MACHINE_DIR
$MACHINE_DIR/node_modules/.bin/copy-node-modules $MACHINE_DIR $TARGET_MACHINE_DIR
node $MACHINE_DIR/deploy/remove-modules.js $TARGET_MACHINE_DIR/node_modules --rem-native

# Fonts setup
mkdir -p $TARGET_MACHINE_DIR/ui/css/fonts
Expand Down
1 change: 0 additions & 1 deletion deploy/codebase/lamassu-machine-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ const upgrade = () => {
async.apply(command, `tar zxf ${basePath}/package/subpackage.tgz -C ${basePath}/package/`),
async.apply(command, `rm -rf ${applicationParentFolder}/lamassu-machine/node_modules/`),
async.apply(command, `cp -PR ${basePath}/package/subpackage/lamassu-machine ${applicationParentFolder}`),
async.apply(command, `cp -PR ${basePath}/package/subpackage/hardware/${hardwareCode}/node_modules ${applicationParentFolder}/lamassu-machine/`),
async.apply(command, `mv ${applicationParentFolder}/lamassu-machine/verify/verify.${arch} ${applicationParentFolder}/lamassu-machine/verify/verify`),
async.apply(command, `mv ${applicationParentFolder}/lamassu-machine/camera-streamer/camera-streamer.${arch} ${applicationParentFolder}/lamassu-machine/camera-streamer/camera-streamer`),
async.apply(installDeviceConfig),
Expand Down
23 changes: 0 additions & 23 deletions deploy/remove-modules.js

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"benchmark": "2.1.4",
"copy-node-modules": "1.1.1",
"postcss-cli": "6.1.1",
"rimraf": "2.6.3",
"sass": "^1.58.3",
"standard": "12.0.1"
},
Expand Down

0 comments on commit f163ae8

Please sign in to comment.