populate dummy usb-butter app store only after the site is built

This commit is contained in:
John Hess 2025-02-18 12:31:48 -06:00
parent 08c42a6c20
commit 23f27f8570

View file

@ -43,21 +43,21 @@ pages:
# Now go build the site we actually want to deploy.
# simulate the drive being inserted
- mv simulated-usb-butter usb-butter
- "sed -i 's/^baseurl.*/baseurl: \"\\/butter-box-ui\"/' _config.yml"
- "sed -i 's/^usb_butter_url.*/usb_butter_url: \"\\/butter-box-ui\\/usb-butter\\/\"/' _config.yml"
- bundle exec jekyll build -d public
# Get the latest build of the FDroid PWA for butter
- curl https://likebutter.gitlab.io/fdroid-webdash-butter/public.zip -o fdroid-webdash-butter.zip
- unzip fdroid-webdash-butter.zip
- mkdir -p usb-butter/appstore
- mv build/web/* usb-butter/appstore
- mkdir -p public/usb-butter/appstore
- mv build/web/* public/usb-butter/appstore
- rm -rf build
- rm -f fdroid-webdash-butter.zip
# Get a sample app store, the same one we refer to in documentation
- curl -L "https://www.dropbox.com/scl/fi/r6dpqa9ugli0v23ox3ho5/repo.zip?rlkey=oxc50ne9runw1bkb1fm3zy5r3&dl=1" -o repo.zip
- unzip repo.zip
- mv repo usb-butter/appstore/fdroid
- rm -f repo.zip
- "sed -i 's/^baseurl.*/baseurl: \"\\/butter-box-ui\"/' _config.yml"
- "sed -i 's/^usb_butter_url.*/usb_butter_url: \"\\/butter-box-ui\\/usb-butter\\/\"/' _config.yml"
- bundle exec jekyll build -d public
- mv repo public/usb-butter/appstore/fdroid
- rm -f repo.zip
# Now move the zip into the public dir so it gets served.
- mv ./site-en.zip ./public/site-en.zip
- mv ./site-es.zip ./public/site-es.zip