-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#7 Refuse to run if macOS version < 11
- Loading branch information
Showing
10 changed files
with
273 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
/* @refresh reload */ | ||
import { render } from "solid-js/web"; | ||
import {render} from "solid-js/web"; | ||
|
||
import "./styles.css"; | ||
import {App} from "./App"; | ||
|
||
render(() => <App />, document.getElementById("root") as HTMLElement); | ||
import * as os from "@tauri-apps/plugin-os"; | ||
import * as process from "@tauri-apps/plugin-process"; | ||
import * as dialog from '@tauri-apps/plugin-dialog'; | ||
|
||
async function verifyOs() { | ||
const minMacosVersion = "11"; | ||
const osType = os.type(); | ||
const osVersion = os.version(); | ||
if (osType === "macos" && osVersion < minMacosVersion) { | ||
await dialog.message( | ||
`Sorry, you can't run the installer on this machine. You have macOS ${osVersion} but the installer needs at least macOS ${minMacosVersion}. | ||
No worries. You can always use ReaPack to install the desired REAPER packages! Just head back to the installation website and choose "Via ReaPack".`, | ||
{ | ||
title: "Incompatible macOS version", | ||
kind: "error", | ||
okLabel: "Exit", | ||
}); | ||
await process.exit(1); | ||
} | ||
} | ||
|
||
await verifyOs(); | ||
|
||
render(() => <App/>, document.getElementById("root") as HTMLElement); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.