Created
February 7, 2024 14:13
-
-
Save heri16/13f66ad9a94bc4b9fabf3937d6f91d40 to your computer and use it in GitHub Desktop.
Fdroid Quick Repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
curl -o commandlinetools-linux.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip && unzip commandlinetools-linux.zip && rm commandlinetools-linux.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
docker run --rm -v $(pwd)/cmdline-tools:/opt/android-sdk -v $(pwd):/repo -e ANDROID_HOME:/opt/android-sdk registry.gitlab.com/fdroid/docker-executable-fdroidserver:master init -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
REPO_URL_PREFIX="http://192.168.10.37:8080" | |
changes="" | |
changes+=$(sed -i .bak 's/^repo_name: .*/repo_name: MetaQuest Free Games/g w /dev/stdout' config.yml) | |
[ "$changes" = "" ] && cat <<EOF | tee -a config.yml | |
repo_url: ${REPO_URL_PREFIX}/fdroid/repo | |
repo_name: MetaQuest Free Games | |
repo_description: >- | |
This is a repository of popular games to be used with Meta Quest. | |
Applications in this repository are unlocked official binaries built by | |
various VR game developers. Please support them. | |
For a graphical games launcher, install and open "Quest Games Optimizer". | |
EOF | |
docker run --rm -v $(pwd)/cmdline-tools:/opt/android-sdk -v $(pwd):/repo -e ANDROID_HOME:/opt/android-sdk registry.gitlab.com/fdroid/docker-executable-fdroidserver:master update --create-metadata | |
ls $(pwd)/metadata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
mkdir -p www | |
changes="" | |
changes+=$(sed -i .bak 's/^local_copy_dir: .*/local_copy_dir: \/repo\/www\/fdroid/g w /dev/stdout' config.yml) | |
[ "$changes" = "" ] && cat <<EOF | tee -a config.yml | |
local_copy_dir: /repo/www/fdroid | |
EOF | |
docker run --rm -v $(pwd)/cmdline-tools:/opt/android-sdk -v $(pwd):/repo -e ANDROID_HOME:/opt/android-sdk registry.gitlab.com/fdroid/docker-executable-fdroidserver:master deploy -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
docker run --rm --name fdroid-nginx -p 8080:80 -v $(pwd)/www:/usr/share/nginx/html:ro -d nginx:stable-alpine-slim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment