Skip to content

Commit

Permalink
Publish release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
pyby committed Mar 24, 2024
0 parents commit df763e0
Show file tree
Hide file tree
Showing 34 changed files with 6,817 additions and 0 deletions.
164 changes: 164 additions & 0 deletions deployments/build.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
<!DOCTYPE html>
<html>
<head>
<title>Play SRG Apple build</title>
<meta charset="UTF-8" content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<style>
@font-face {
font-family: "SRG SSR Configuration Regular";
src: url("https://www.rsi.ch/play/v3/fonts/SRGSSRTypeVF_Text_W_Wght.woff2") format("woff2");
}
body {
font-family: "SRG SSR Configuration Regular";
-webkit-touch-callout: none;
-webkit-user-select: none;
-webkit-text-size-adjust: 100%;
color: #ffffff;
background-color: #161616;
}
a {
color: white;
}
img {
border-radius: 10pt;
}
</style>
<script>
const Platform = {
iOS: 'ios',
tvOS: 'tvos',
none: 'none'
};

const Configuration = {
nightly: 'nightly',
beta: 'beta',
none: 'none'
};

function getPlatform() {
const platformParam = getQueryParameter('platform');
const platform = platformParam ? platformParam.toLowerCase() : null;
if (platform === 'ios') {
return Platform.iOS;
} else if (platform === 'tvos') {
return Platform.tvOS;
}
return Platform.none;
}

function platformName() {
switch (getPlatform()) {
case Platform.iOS:
return 'iOS';
case Platform.tvOS:
return 'tvOS';
default:
return 'SRG';
}
}

function getConfiguration() {
const configurationParam = getQueryParameter('configuration');
const configuration = configurationParam ? configurationParam.toLowerCase() : null;
if (configuration === 'nightly') {
return Configuration.nightly;
} else if (configuration === 'beta') {
return Configuration.beta;
}
return Configuration.none;
}

function configurationName() {
switch (getConfiguration()) {
case Configuration.nightly:
return 'nightly';
case Configuration.beta:
return 'beta';
default:
return 'nightly and beta';
}
}

function configurationNames() {
switch (getConfiguration()) {
case Configuration.nightly:
return 'nightlies';
case Configuration.beta:
return 'betas';
default:
return 'nightlies and betas';
}
}

function getVersion() {
return getQueryParameter('version');
}

function getQueryParameter(name) {
const url = window.location.href;
name = name.replace(/[\[\]]/g, '\\$&');
const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)');
const results = regex.exec(url);
if (!results) {
return null;
}
if (!results[2]) {
return '';
}
return decodeURIComponent(results[2]);
;
}
</script>
</head>
<body>
<div style="text-align: center;">
<h2>Play <script> document.write(platformName());</script> <script> document.write(configurationNames());</script></h2>
<p>
The private <script> document.write(configurationName());</script> versions are only intended for internal SRG SSR use and should not be distributed outside the company.
<br/>
Only the developer team can send a private invitation with <a href="https://apps.apple.com/app/testflight/id899247664" target="_blank">Apple TestFlight</a> access link.
</p>
<script>
var version = getVersion();
var platform = getPlatform();
var configuration = getConfiguration();

if (platform === Platform.iOS) {
document.write('<p>📱 🚗 💻</p><p>Available on iPhone, iPad, with CarPlay<br/>and on Mac with Apple Silicon (MacOS running the iPad version).</p>');
} else if (platform === Platform.tvOS) {
document.write('<p>📺</p><p>Available on Apple TV.</p>');
}

if (version && platform !== Platform.none && configuration !== Configuration.none) {
document.write('<p>Search in Apple TestFlight application and install this <b>Play ' + platformName() + ' ' + configurationName() + ' version</b>:</p>');
document.write('<h1>' + version + '</h1>');
}

if (platform !== Platform.none && configuration !== Configuration.non) {
if (platform === Platform.tvOS) {
document.write('<p>Help TestFlight links:<br/>(tvOS builds are only displayed on TV)</p>');
}
else {
document.write('<p>Help TestFlight links:</p>');
}

if (configuration === Configuration.nightly) {
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1525999232" target="_blank"><img src="./icon_rsi-' + getPlatform() + '-nightly.png" height="60"/></a></p>');
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1525999511" target="_blank"><img src="./icon_rtr-' + getPlatform() + '-nightly.png" height="60"/></a></p>');
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1525999108" target="_blank"><img src="./icon_rts-' + getPlatform() + '-nightly.png" height="60"/></a></p>');
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1525999251" target="_blank"><img src="./icon_srf-' + getPlatform() + '-nightly.png" height="60"/></a></p>');
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1525912081" target="_blank"><img src="./icon_swi-' + getPlatform() + '-nightly.png" height="60"/></a></p>');
}
else if (platform !== Platform.none && configuration === Configuration.beta) {
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1541523749" target="_blank"><img src="./icon_rsi-' + getPlatform() + '-beta.png" height="60"/></a></p>');
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1541523913" target="_blank"><img src="./icon_rtr-' + getPlatform() + '-beta.png" height="60"/></a></p>');
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1541524094" target="_blank"><img src="./icon_rts-' + getPlatform() + '-beta.png" height="60"/></a></p>');
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1541523775" target="_blank"><img src="./icon_srf-' + getPlatform() + '-beta.png" height="60"/></a></p>');
document.write('<p><a href="https://beta.itunes.apple.com/v1/app/1541523969" target="_blank"><img src="./icon_swi-' + getPlatform() + '-beta.png" height="60"/></a></p>');
}
}
</script>
</div>
</body>
</html>
Binary file added deployments/icon_rsi-ios-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rsi-ios-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rsi-tvos-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rsi-tvos-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rtr-ios-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rtr-ios-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rtr-tvos-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rtr-tvos-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rts-ios-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rts-ios-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rts-tvos-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_rts-tvos-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_srf-ios-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_srf-ios-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_srf-tvos-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_srf-tvos-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_swi-ios-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_swi-ios-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_swi-tvos-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deployments/icon_swi-tvos-nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>Play SRG Apple</title>
</head>
<meta charset="UTF-8" content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<style>
@font-face {
font-family: "SRG SSR Type Regular";
src: url("https://www.rsi.ch/play/v3/fonts/SRGSSRTypeVF_Text_W_Wght.woff2") format("woff2");
}
body {
font-family: "SRG SSR Type Regular";
-webkit-touch-callout: none;
-webkit-user-select: none;
-webkit-text-size-adjust: 100%;
color: #ffffff;
background-color: #161616;
}
a {
color: white;
}
</style>
<body>
<div style="text-align: center;">
<h2>Play SRG Apple</h2>
<br/>
<h4>iPhone & iPad release notes</h4>
<p><a href="releases/release_notes-ios-rsi.html">Play RSI</a></p>
<p><a href="releases/release_notes-ios-rtr.html">Play RTR</a></p>
<p><a href="releases/release_notes-ios-rts.html">Play RTS</a></p>
<p><a href="releases/release_notes-ios-srf.html">Play SRF</a></p>
<p><a href="releases/release_notes-ios-swi.html">Play SWI</a></p>
<br/>
<h4>Apple TV release notes</h4>
<p><a href="releases/release_notes-tvos-rsi.html">Play RSI</a></p>
<p><a href="releases/release_notes-tvos-rtr.html">Play RTR</a></p>
<p><a href="releases/release_notes-tvos-rts.html">Play RTS</a></p>
<p><a href="releases/release_notes-tvos-srf.html">Play SRF</a></p>
<p><a href="releases/release_notes-tvos-swi.html">Play SWI</a></p>
<br/>
<h4>Beta (TestFlight) release notes</h4>
<p><a href="releases/release_notes-ios-beta.html">Play iOS beta</a></p>
<p><a href="releases/release_notes-tvos-beta.html">Play tvOS beta</a></p>
</div>
</body>
</html>
Loading

0 comments on commit df763e0

Please sign in to comment.