dev channel: Apache serves /desktop/dev/latest.json; the VDS publisher lists releases without the draft filter (it hid the dev drafts)
This commit is contained in:
parent
9947ea1639
commit
29a9683ab7
2 changed files with 3 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
Alias /desktop/latest.json /var/www/storebound-desktop/latest.json
|
Alias /desktop/latest.json /var/www/storebound-desktop/latest.json
|
||||||
Alias /desktop/beta/latest.json /var/www/storebound-desktop/beta/latest.json
|
Alias /desktop/beta/latest.json /var/www/storebound-desktop/beta/latest.json
|
||||||
Alias /desktop/rehearsal/latest.json /var/www/storebound-desktop/rehearsal/latest.json
|
Alias /desktop/rehearsal/latest.json /var/www/storebound-desktop/rehearsal/latest.json
|
||||||
|
Alias /desktop/dev/latest.json /var/www/storebound-desktop/dev/latest.json
|
||||||
Alias /desktop/dl/ /var/www/storebound-desktop/dl/
|
Alias /desktop/dl/ /var/www/storebound-desktop/dl/
|
||||||
<Directory /var/www/storebound-desktop>
|
<Directory /var/www/storebound-desktop>
|
||||||
Options -Indexes -FollowSymLinks
|
Options -Indexes -FollowSymLinks
|
||||||
|
|
@ -16,7 +17,7 @@ Alias /desktop/dl/ /var/www/storebound-desktop/dl/
|
||||||
Header set Content-Disposition "attachment"
|
Header set Content-Disposition "attachment"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</Directory>
|
</Directory>
|
||||||
<LocationMatch "^/desktop/((beta|rehearsal)/)?latest\.json$">
|
<LocationMatch "^/desktop/((beta|rehearsal|dev)/)?latest\.json$">
|
||||||
Header set Cache-Control "no-cache"
|
Header set Cache-Control "no-cache"
|
||||||
Header set Access-Control-Allow-Origin "*"
|
Header set Access-Control-Allow-Origin "*"
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ def main():
|
||||||
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
||||||
except BlockingIOError:
|
except BlockingIOError:
|
||||||
return
|
return
|
||||||
rels = get(f"{FORGEJO}/api/v1/repos/{REPO}/releases?draft=true&limit=50")
|
rels = get(f"{FORGEJO}/api/v1/repos/{REPO}/releases?limit=50")
|
||||||
cands = [(r, r["tag_name"][4:]) for r in rels if r["tag_name"].startswith("dev-") and key(r["tag_name"][4:])]
|
cands = [(r, r["tag_name"][4:]) for r in rels if r["tag_name"].startswith("dev-") and key(r["tag_name"][4:])]
|
||||||
if not cands:
|
if not cands:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue