Skip to content

Commit

Permalink
Publish release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rts-devops committed Jun 27, 2024
0 parents commit 94c9322
Show file tree
Hide file tree
Showing 53 changed files with 6,401 additions and 0 deletions.
244 changes: 244 additions & 0 deletions deployments/build.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
<!DOCTYPE html>
<html>
<head>
<title>Play SRG Apple build information -> Open in a web browser</title>
<meta charset="UTF-8" content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta property="og:image" content="https://srgssr.github.io/playsrg-apple/preview.png" />
<meta name="twitter:card" content="summary_large_image">
<meta property="og:title" content="Play SRG Apple build information -> Open in a web browser" />
<meta property="og:description" content="More information on the Play SRG Apple version and how to find it. You need to open the page in a web browser to find out the platform, configuration and version number." />
<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',
testFlight: 'testflight',
appstore: 'appstore',
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;
} else if (configuration === 'testflight') {
return Configuration.testFlight;
} else if (configuration === 'appstore') {
return Configuration.appstore;
} else return Configuration.none;
}

function configurationName() {
switch (getConfiguration()) {
case Configuration.nightly:
return 'nightly';
case Configuration.beta:
return 'beta';
case Configuration.testFlight:
return 'public TestFlight beta';
default:
return 'AppStore';
}
}

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

function getVersion() {
var version = getQueryParameter('version');
return version ? 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]);
}

function applicationId(configuration, bu) {
applicationIds = {
'nightly': {
'rsi': '1525999232',
'rtr': '1525999511',
'rts': '1525999108',
'srf': '1525999251',
'swi': '1525912081'
},
'beta': {
'rsi': '1541523749',
'rtr': '1541523913',
'rts': '1541524094',
'srf': '1541523775',
'swi': '1541523969'
},
'testflight': {
'rsi': '920753497',
'rtr': '920754925',
'rts': '920754415',
'srf': '638194352',
'swi': '920785201'
},
'appstore': {
'rsi': '920753497',
'rtr': '920754925',
'rts': '920754415',
'srf': '638194352',
'swi': '920785201'
},
'none': {
'rsi': '920753497',
'rtr': '920754925',
'rts': '920754415',
'srf': '638194352',
'swi': '920785201'
}
};
return applicationIds[configuration][bu];
}

function getApplicationLink(configuration, bu) {
switch (configuration) {
case Configuration.nightly:
case Configuration.beta:
case Configuration.testFlight:
return 'https://beta.itunes.apple.com/v1/app/' + applicationId(configuration, bu);
default:
return 'https://apps.apple.com/ch/app/' + applicationId(configuration, bu);
}
}

document.title = 'Play ' + platformName() + ' ' + configurationNames() + ' ' + getVersion() + ' - SRG SSR';
</script>
</head>
<body>
<div style="text-align: center;">
<script>
var version = getVersion();
var platform = getPlatform();
var configuration = getConfiguration();

switch (configuration) {
case Configuration.nightly:
case Configuration.beta:
document.write('<h2>Play ' + platformName() + ' ' + configurationNames() + '</h2>');
document.write('<p>The ' + configurationName() + ' versions are only intended for internal SRG SSR use and should not be distributed outside the company.</p>');
document.write('<p>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>');
break;
case Configuration.testFlight:
document.write('<h2>Play ' + platformName() + ' ' + configurationNames() + '</h2>');
document.write('<p>The ' + configurationName() + ' versions are available for all with an anonymous subscription.</p>');
document.write('<p>Find the <a href="https://apps.apple.com/app/testflight/id899247664" target="_blank">Apple TestFlight</a> invitation link in the iOS application from the AppStore, in Profile tab, in Settings view.</p>');
break;
default:
document.write('<h2>Play ' + platformName() + '</h2>');
document.write('<p>The ' + configurationName() + ' versions are available for all on the AppStore.</p>');
break;
}

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) {
if (configuration === Configuration.appstore) {
document.write('<p>Search in Apple Store application and install <b>Play ' + platformName() + ' version</b>.<br />The latest version could be:</p>');
}
else {
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) {
tvInfo = (platform === Platform.tvOS) ? '<br/>(tvOS builds are only displayed on TV)' : '';

switch (configuration) {
case Configuration.nightly:
case Configuration.beta:
case Configuration.testFlight:
document.write('<p>Help TestFlight links:' + tvInfo + '</p>');
break;
default:
document.write('<p>AppStore links:</p>');
break;
}

bus = ['rsi', 'rtr', 'rts', 'srf', 'swi'];
for (bu of bus) {
document.write('<p><a href="' + getApplicationLink(configuration, bu) + '" target="_blank"><img src="./icon_' + bu + '-' + getPlatform() + '-' + configuration + '.png" height="60"/></a></p>');
}
}
</script>
</div>
</body>
</html>
Binary file added deployments/icon_rsi-ios-appstore.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-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-ios-none.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-testflight.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-appstore.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_rsi-tvos-none.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-testflight.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-appstore.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-ios-none.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-testflight.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-appstore.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_rtr-tvos-none.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-testflight.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-appstore.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-ios-none.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-testflight.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-appstore.png
Binary file added deployments/icon_rts-tvos-beta.png
Binary file added deployments/icon_rts-tvos-nightly.png
Binary file added deployments/icon_rts-tvos-none.png
Binary file added deployments/icon_rts-tvos-testflight.png
Binary file added deployments/icon_srf-ios-appstore.png
Binary file added deployments/icon_srf-ios-beta.png
Binary file added deployments/icon_srf-ios-nightly.png
Binary file added deployments/icon_srf-ios-none.png
Binary file added deployments/icon_srf-ios-testflight.png
Binary file added deployments/icon_srf-tvos-appstore.png
Binary file added deployments/icon_srf-tvos-beta.png
Binary file added deployments/icon_srf-tvos-nightly.png
Binary file added deployments/icon_srf-tvos-none.png
Binary file added deployments/icon_srf-tvos-testflight.png
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' />
<meta property="og:image" content="https://srgssr.github.io/playsrg-apple/preview.png" />
<meta name="twitter:card" content="summary_large_image">
<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>
<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>
<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>
Binary file added preview.png
Loading

0 comments on commit 94c9322

Please sign in to comment.