Skip to content

Commit

Permalink
fix: update build assets
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Aug 31, 2023
1 parent 0ccd7c7 commit 47e72b4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
name: Upload Chrome Extension Zip
with:
name: stacks-wallet-chromium
path: stacks-wallet-chromium.zip
path: leather-chromium.zip

build_firefox:
name: Build debug Firefox extension
Expand Down Expand Up @@ -88,9 +88,9 @@ jobs:
run: sh build-ext.sh

- name: Rename file
run: mv stacks-wallet-chromium.zip stacks-wallet-firefox.zip
run: mv leather-chromium.zip leather-firefox.zip

- uses: actions/upload-artifact@v3
with:
name: stacks-wallet-firefox
path: stacks-wallet-firefox.zip
path: leather-firefox.zip
8 changes: 4 additions & 4 deletions .github/workflows/publish-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- uses: actions/upload-artifact@v3
name: Upload build artifact
with:
name: hiro-wallet
name: leather-wallet
path: dist

create-github-release:
Expand All @@ -67,15 +67,15 @@ jobs:
- run: ls -R

- name: Zip release build
run: zip -r hiro-wallet.v${{ needs.build-extension.outputs.new_version }}.zip hiro-wallet/
run: zip -r leather-wallet.v${{ needs.build-extension.outputs.new_version }}.zip leather-wallet/

- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v${{ needs.build-extension.outputs.new_version }}
body_path: release-notes.txt
files: hiro-wallet.v${{ needs.build-extension.outputs.new_version }}.zip
files: leather-wallet.v${{ needs.build-extension.outputs.new_version }}.zip

publish_chrome_extension:
name: Publish Chrome extension
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
continue-on-error: true
id: publish-chrome
run: |
yarn chrome-webstore-upload upload --source stacks-wallet-chromium.zip
yarn chrome-webstore-upload upload --source leather-chromium.zip
echo "::set-output name=publish_status::${?}"
env:
EXTENSION_ID: ${{ secrets.CHROME_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tests/screenshots/*
.DS_Store
.vercel
yarn-error.log
stacks-wallet-chromium.zip
leather-chromium.zip
packages
web-ext-artifacts/
.yalc/
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ RUN apt-get update -y \
&& chmod +x build-ext.sh \
&& yarn \
&& yarn build \
&& ./build-ext.sh /stacks-wallet-chromium.zip
&& ./build-ext.sh /leather-chromium.zip


FROM alpine:3.16
COPY --from=builder /stacks-wallet-chromium.zip .
COPY --from=builder /leather-chromium.zip .

# Wait for extension.zip to be copied into local
CMD sleep 30
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Run the following from within this repository's root directory if you've pulled
yarn && yarn build && sh build-ext.sh
```

The extension is packaged as `stacks-wallet-chromium.zip`.
The extension is packaged as `leather-chromium.zip`.

## Security

Expand Down
2 changes: 1 addition & 1 deletion build-ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ find -print | while read file; do
exit 2
fi
done
DEFAULT_DEST="../stacks-wallet-chromium.zip"
DEFAULT_DEST="../leather-chromium.zip"
DEST=${1:-$DEFAULT_DEST}
zip -Xro $DEST *
if [ ! -f $DEST ]; then
Expand Down

0 comments on commit 47e72b4

Please sign in to comment.