Skip to content

Commit

Permalink
container fetch-plugins.sh: Update to new plugin tarball format
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquim Rocha <[email protected]>
  • Loading branch information
joaquimrocha committed Jul 29, 2024
1 parent ccdd0c3 commit 8f37f1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions container/fetch-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ for plugin in $plugins; do

archivedir=$TMPDIR/$plugin
mkdir -p $archivedir
tar -xzf $TMPDIR/$plugin.tgz -C $archivedir --wildcards '*/dist/main.js' '*/package.json'
tar -xzf $TMPDIR/$plugin.tgz -C $archivedir --wildcards '*/main.js' '*/package.json'

ls -lr $archivedir

extracted_dir=$(find $archivedir -mindepth 1 -maxdepth 1 -type d)

dir=$DESTDIR/$plugin
mkdir -p $dir
cp $archivedir/package/dist/main.js $archivedir/package/package.json $dir
cp $extracted_dir/main.js $extracted_dir/package.json $dir

echo " done"
done
Expand Down

0 comments on commit 8f37f1b

Please sign in to comment.