Unverified Commit 5552d08f authored by chrisgarrity's avatar chrisgarrity Committed by GitHub

Merge pull request #3738 from LLK/hotfix/scratch-desktop-3.9.0

[Master] hotfix/scratch desktop 3.9.0
parents da1e6082 83112f76
...@@ -13,6 +13,14 @@ const Step = require('../../components/steps/step.jsx'); ...@@ -13,6 +13,14 @@ const Step = require('../../components/steps/step.jsx');
require('./install-scratch.scss'); require('./install-scratch.scss');
const downloadUrls = {
mac: 'https://downloads.scratch.mit.edu/desktop/Scratch%20Desktop-3.6.0.dmg',
win: 'https://downloads.scratch.mit.edu/desktop/Scratch%20Desktop%20Setup%203.9.0.exe',
googlePlayStore: 'https://play.google.com/store/apps/details?id=org.scratch',
microsoftStore: 'https://www.microsoft.com/store/apps/9pfgj25jl6x3?cid=storebadge&ocid=badge',
macAppStore: 'https://apps.apple.com/us/app/scratch-desktop/id1446785996?mt=12'
};
const InstallScratch = ({ const InstallScratch = ({
currentOS currentOS
}) => ( }) => (
...@@ -67,7 +75,7 @@ const InstallScratch = ({ ...@@ -67,7 +75,7 @@ const InstallScratch = ({
{currentOS === OS_ENUM.WINDOWS && ( {currentOS === OS_ENUM.WINDOWS && (
<a <a
className="ms-badge" className="ms-badge"
href="https://www.microsoft.com/store/apps/9pfgj25jl6x3?cid=storebadge&ocid=badge" href={downloadUrls.microsoftStore}
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
> >
...@@ -79,7 +87,7 @@ const InstallScratch = ({ ...@@ -79,7 +87,7 @@ const InstallScratch = ({
{currentOS === OS_ENUM.MACOS && ( {currentOS === OS_ENUM.MACOS && (
<a <a
className="macos-badge" className="macos-badge"
href="https://apps.apple.com/us/app/scratch-desktop/id1446785996?mt=12" href={downloadUrls.macAppStore}
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
> >
...@@ -91,7 +99,7 @@ const InstallScratch = ({ ...@@ -91,7 +99,7 @@ const InstallScratch = ({
{isFromGooglePlay(currentOS) && ( {isFromGooglePlay(currentOS) && (
<a <a
className="play-badge" className="play-badge"
href="https://play.google.com/store/apps/details?id=org.scratch" href={downloadUrls.googlePlayStore}
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
> >
...@@ -106,14 +114,7 @@ const InstallScratch = ({ ...@@ -106,14 +114,7 @@ const InstallScratch = ({
<span className="horizontal-divider"> <span className="horizontal-divider">
<FormattedMessage id="installScratch.or" /> <FormattedMessage id="installScratch.or" />
</span> </span>
<a <a href={currentOS === OS_ENUM.WINDOWS ? downloadUrls.win : downloadUrls.mac}>
href={
currentOS === OS_ENUM.WINDOWS ?
'https://downloads.scratch.mit.edu/desktop/Scratch%20Desktop%20Setup%203.6.0.exe' :
'https://downloads.scratch.mit.edu/desktop/Scratch%20Desktop-3.6.0.dmg'
}
>
<FormattedMessage id="installScratch.directDownload" /> <FormattedMessage id="installScratch.directDownload" />
</a> </a>
</React.Fragment> </React.Fragment>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment