Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions .github/workflows/push-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,53 +341,6 @@ jobs:
mv "$file" "pslab-$branch-${file#*-}"
done

echo "Generating download page"

repo="${{ github.repository }}"
raw_base="https://github.com/${repo}/raw/app"

{
cat <<'EOF'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PSLab App Downloads</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; max-width: 720px; margin: 48px auto; padding: 0 20px; line-height: 1.5; color: #24292f; }
h1 { margin-bottom: 8px; }
p { color: #57606a; }
ul { list-style: none; padding: 0; }
li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #d0d7de; }
a { color: #fff; background: #cf2b27; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.name { font-weight: 600; word-break: break-all; }
</style>
</head>
<body>
<h1>PSLab App Downloads</h1>
<p>Development builds. Each link starts a direct file download.</p>
<ul>
EOF
for file in *; do
[ -f "$file" ] || continue
[ "$file" = "index.html" ] && continue
case "$file" in
*.apk|*.aab|*.ipa|*.exe|*.deb|*.rpm|*.dmg|*.zip) ;;
*) continue ;;
esac
escaped_name=$(printf '%s' "$file" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g')
encoded_name=$(python3 -c 'import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1], safe=""))' "$file")
printf ' <li><span class="name">%s</span><a href="%s/%s" download>Download</a></li>\n' \
"$escaped_name" "$raw_base" "$encoded_name"
done
cat <<'EOF'
</ul>
</body>
</html>
EOF
} > index.html

git checkout --orphan temporary
git add --all .

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ This repository holds the Android App for performing experiments with [PSLab](ht

The PSLab app is available for **Android**, **iOS**, **Windows**, **macOS**, **Linux**, and **Web**.

- Store listings and install guides: [PSLab Application documentation](https://docs.pslab.io/application/Readme.html)
- Development builds (direct downloads): [Download page](https://github.com/fossasia/pslab-app/raw/refs/heads/app/index.html)
For download links and installation instructions for all platforms, see the [PSLab Application documentation](https://docs.pslab.io/application/Readme.html).

Sign up for the latest updates and test new features early by joining our [beta program](https://play.google.com/apps/testing/io.pslab).

Expand Down
Loading
Loading