populate dummy usb-butter app store only after the site is built
This commit is contained in:
parent
08c42a6c20
commit
23f27f8570
1 changed files with 7 additions and 7 deletions
|
|
@ -43,21 +43,21 @@ pages:
|
||||||
# Now go build the site we actually want to deploy.
|
# Now go build the site we actually want to deploy.
|
||||||
# simulate the drive being inserted
|
# simulate the drive being inserted
|
||||||
- mv simulated-usb-butter usb-butter
|
- 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
|
# 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
|
- curl https://likebutter.gitlab.io/fdroid-webdash-butter/public.zip -o fdroid-webdash-butter.zip
|
||||||
- unzip fdroid-webdash-butter.zip
|
- unzip fdroid-webdash-butter.zip
|
||||||
- mkdir -p usb-butter/appstore
|
- mkdir -p public/usb-butter/appstore
|
||||||
- mv build/web/* usb-butter/appstore
|
- mv build/web/* public/usb-butter/appstore
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- rm -f fdroid-webdash-butter.zip
|
- rm -f fdroid-webdash-butter.zip
|
||||||
# Get a sample app store, the same one we refer to in documentation
|
# 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
|
- curl -L "https://www.dropbox.com/scl/fi/r6dpqa9ugli0v23ox3ho5/repo.zip?rlkey=oxc50ne9runw1bkb1fm3zy5r3&dl=1" -o repo.zip
|
||||||
- unzip repo.zip
|
- unzip repo.zip
|
||||||
- mv repo usb-butter/appstore/fdroid
|
- mv repo public/usb-butter/appstore/fdroid
|
||||||
- rm -f repo.zip
|
- 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
|
|
||||||
# Now move the zip into the public dir so it gets served.
|
# Now move the zip into the public dir so it gets served.
|
||||||
- mv ./site-en.zip ./public/site-en.zip
|
- mv ./site-en.zip ./public/site-en.zip
|
||||||
- mv ./site-es.zip ./public/site-es.zip
|
- mv ./site-es.zip ./public/site-es.zip
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue