Skip to content

Commit

Permalink
Added a release script and updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
heisencoder committed Oct 2, 2022
1 parent 540c5f2 commit c110acb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
*.swp

# This is where the releases go
releases
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tab-shortcuts
Chrome extension that adds keyboard shortcuts for moving around tabs.

## Features
## Features
This extension supports adding keybindings for the following actions:

* `move-tabs-left`: Moves all selected tabs one position to the left.
Expand Down Expand Up @@ -39,6 +39,19 @@ For consideration:

* Keep track of tab position before move and allow for undo motion.

## Developing

The source code is in the `tab-shortcuts` subdirectory, including the manifest
and javascript files. To make a release, run `bash make-release.sh` in the
top-level directory. This will put a new zip file into a `releases`
subdirectory, including the version extracted from the manifest.

To update the version number, edit the `version` field in `manifest.json`.
This is required before uploading a new version to the Chrome Web Store.

Note that `make-release.sh` requires that the `jq` command be installed (which
is used for parsing the JSON-based manifest file).

## Acknowledgements

Thanks to Kenneth LU for making the
Expand Down
14 changes: 14 additions & 0 deletions make-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/bash

VERSION=v`cat tab-shortcuts/manifest.json | jq -r '.version'`
RELEASE_FILENAME="tab-shortcuts-${VERSION}.zip"
RELEASE_PATH="releases/${RELEASE_FILENAME}"

mkdir -p releases
if [ -e ${RELEASE_PATH} ]; then
rm ${RELEASE_PATH}
fi
cd tab-shortcuts
zip ../${RELEASE_PATH} *

echo "Created ${RELEASE_PATH}"

0 comments on commit c110acb

Please sign in to comment.