Skip to content

Commit

Permalink
fix: consistent samples path (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmkerr authored May 20, 2024
1 parent 60f9168 commit 2072ff2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/xx-appendices/01-installing-samples/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ It will also allow you to overwrite the samples, update or recreate them if you

If you would prefer to manually download and unzip the samples, perhaps so that you can install them to a different location, you can download them as a zip file from:

- https://effective-shell.com/downloads/effective-shell-samples.zip
- https://effective-shell.com/downloads/effective-shell.zip

You can also download them as a tarball from:

- https://effective-shell.com/downloads/effective-shell-samples.tar.gz
- https://effective-shell.com/downloads/effective-shell.tar.gz

## Deleting the Samples

Expand Down
8 changes: 4 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ typescript-check: # Check typescript types.
build: # Build the site and artifacts.
mkdir -p ./static/downloads
./scripts/build-samples.sh
cp ./artifacts/effective-shell-samples.zip ./static/downloads/effective-shell-samples.zip
cp ./artifacts/effective-shell-samples.tar.gz ./static/downloads/effective-shell-samples.tar.gz
test -e ./static/downloads/effective-shell-samples.zip
test -e ./static/downloads/effective-shell-samples.tar.gz
cp ./artifacts/effective-shell.zip ./static/downloads/effective-shell.zip
cp ./artifacts/effective-shell.tar.gz ./static/downloads/effective-shell.tar.gz
test -e ./static/downloads/effective-shell.zip
test -e ./static/downloads/effective-shell.tar.gz
npm ci --legacy-peer-deps && npm run build

# Create the summary structure in word format, easier to share.
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ mkdir -p ./artifacts/effective-shell/repositories
)

# Zip up and tar up the samples
(cd ./artifacts && zip -r ./effective-shell-samples.zip ./effective-shell)
tar czf ./artifacts/effective-shell-samples.tar.gz -C ./artifacts/effective-shell .
(cd ./artifacts && zip -r ./effective-shell.zip ./effective-shell)
tar czf ./artifacts/effective-shell.tar.gz -C ./artifacts/effective-shell .

0 comments on commit 2072ff2

Please sign in to comment.