mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
feat: wip packaging chrome extension
This commit is contained in:
5
scripts/chrome-extension-files/manifest.json
Normal file
5
scripts/chrome-extension-files/manifest.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Bruno API Client",
|
||||
"short_name": "Bruno"
|
||||
}
|
||||
22
scripts/create-chrome-extension.sh
Executable file
22
scripts/create-chrome-extension.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Remove any chrome-extension directory
|
||||
rm -rf chrome-extension
|
||||
|
||||
# Remove any bruno.zip files
|
||||
rm bruno.zip
|
||||
|
||||
# Create a new chrome-extension directory
|
||||
mkdir chrome-extension
|
||||
|
||||
# Copy build
|
||||
cp -r packages/bruno-app/out/* chrome-extension
|
||||
|
||||
# Copy the chrome extension files
|
||||
cp -r scripts/chrome-extension-files/* chrome-extension
|
||||
|
||||
# Remove sourcemaps
|
||||
find chrome-extension -name '*.map' -type f -delete
|
||||
|
||||
# Compress the chrome-extension directory into a zip file
|
||||
zip -r bruno.zip chrome-extension
|
||||
Reference in New Issue
Block a user