Skip to content

Commit

Permalink
Fix case of macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Olliebrown committed Jan 17, 2020
1 parent dc5290d commit b951ea0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scraper/gameInfoScraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function downloadAndProcessGameDataFile (curGame) {
gameData = newGameData

// TODO: Update build data links to point to local files when available
const builds = { win64: {}, macOS: {}, linux64: {}, android: {}, ios: {} }
const builds = { win64: {}, macos: {}, linux64: {}, android: {}, ios: {} }
buildAndLogFiles.forEach((filename) => {
let fields = path.basename(filename, '.zip').split('-')
if (filename.includes('.log')) {
Expand Down Expand Up @@ -135,7 +135,7 @@ async function downloadAndProcessGameDataFile (curGame) {

// Attach the build links
if (builds.win64 === {}) { delete builds.win64 }
if (builds.macOS === {}) { delete builds.macOS }
if (builds.macos === {}) { delete builds.macos }
if (builds.linux64 === {}) { delete builds.linux64 }
if (builds.android === {}) { delete builds.android }
if (builds.ios === {}) { delete builds.ios }
Expand Down
8 changes: 4 additions & 4 deletions src/Components/GameDevInfoPaper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ export default function GameDevInfoPaper (props) {
<Grid item xs={6}>
<DevBuildButton text="Download MacOS Build" icon={<PlatformIcons.MacOSIcon />}
logOpenCallback={props.logOpenCallback}
linkCurrent={props.game?.builds?.macOS?.current?.link}
linkPrevious={props.game?.builds?.macOS?.previous?.link}
logCurrent={props.game?.builds?.macOS?.current?.log}
logPrevious={props.game?.builds?.macOS?.previous?.log} />
linkCurrent={props.game?.builds?.macos?.current?.link}
linkPrevious={props.game?.builds?.macos?.previous?.link}
logCurrent={props.game?.builds?.macos?.current?.log}
logPrevious={props.game?.builds?.macos?.previous?.log} />
</Grid>
</Grid>
</Box>
Expand Down

0 comments on commit b951ea0

Please sign in to comment.