Development instruction for R2 Explorer
Build and publish Dashboard into Dev
make build-dashboard
wrangler pages publish --branch dev --project-name r2-explorer-dashboard dist/
Build and publish Dashboard into Production
cd packages/dashboard/
npm run build
wrangler pages publish --branch main --project-name r2-explorer-dashboard dist/
cd worker
export RELEASE_VERSION=v1.0.0
node packages/config/preparePublish.js
npm run build
npm publish --access public
cd packages/dashboard/public/img
convert logo.png -resize ' 192x192' android-chrome-192x192.png
convert logo.png -resize ' 512x512' android-chrome-512x512.png
convert logo.png -resize ' 154x154' -gravity center -background transparent -extent 192x192 android-chrome-maskable-192x192.png
convert logo.png -resize ' 410x410' -gravity center -background transparent -extent 512x512 android-chrome-maskable-512x512.png
convert logo.png -resize ' 180x180' -background white apple-touch-icon.png
convert logo.png -resize ' 60x60' -background white apple-touch-icon-60x60.png
convert logo.png -resize ' 76x76' -background white apple-touch-icon-76x76.png
convert logo.png -resize ' 120x120' -background white apple-touch-icon-120x120.png
convert logo.png -resize ' 180x180' -background white apple-touch-icon-180x180.png
convert logo.png -resize ' 152x152' -background white apple-touch-icon-152x152.png
convert logo.png -resize ' 16x16' favicon-16x16.png
convert logo.png -resize ' 32x32' favicon-32x32.png
convert logo.png -resize ' 144x144' msapplication-icon-144x144.png
convert logo.png -resize ' 150x150' -background transparent -compose Copy -gravity center -extent 270x270 mstile-150x150.png
convert logo.png -resize ' 512x512' safari-pinned-tab.svg
cd packages/dashboard-v2/public
convert logo.png -resize ' 128x128' icons/favicon-128x128.png
convert logo.png -resize ' 96x96' icons/favicon-96x96.png
convert logo.png -resize ' 32x32' icons/favicon-32x32.png
convert logo.png -resize ' 16x16' icons/favicon-16x16.png