Skip to content

Commit e069e16

Browse files
committed
Finalize 0.0.3
1 parent 74516d4 commit e069e16

File tree

6 files changed

+32
-21
lines changed

6 files changed

+32
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "crosscode",
33
"private": true,
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crosscode"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
description = "Cross platform iOS IDE"
55
authors = ["nab138"]
66
edition = "2021"

src-tauri/src/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn install_wsl() -> Result<(), String> {
7171
{
7272
Command::new("powershell")
7373
.arg("-Command")
74-
.arg("Start-Process powershell -Verb runAs -ArgumentList '-NoExit','-Command','wsl --install Ubuntu-24.04; Write-Host \"`nIf this is your first time installing WSL, a restart is required to finish. After restarting, open CrossCode and click Install WSL again to finish the installation.\"; Read-Host \"Press Enter to close\"'")
74+
.arg("Start-Process powershell -Verb runAs -ArgumentList '-NoExit','-Command','wsl --install Ubuntu-24.04; Write-Host \"`nIf this is your first time installing WSL, you must restart your PC to finish. It is safe to ignore the error about missing features. After restarting, open CrossCode and click Install WSL again to finish the installation.\"; Read-Host \"Press Enter to close\"'")
7575
.spawn()
7676
.map_err(|e| e.to_string())?;
7777
}

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"productName": "CrossCode",
2525
"mainBinaryName": "CrossCode",
26-
"version": "0.0.2",
26+
"version": "0.0.3",
2727
"identifier": "me.nabdev.crosscode",
2828
"plugins": {
2929
"fs": {

src/pages/Onboarding.tsx

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -167,28 +167,39 @@ export default ({}: OnboardingProps) => {
167167
</Typography>
168168
<Divider />
169169
<CardContent>
170-
<Typography level="body-md">
170+
<Typography
171+
level="body-md"
172+
sx={{
173+
alignContent: "center",
174+
display: "flex",
175+
gap: "var(--padding-xs)",
176+
}}
177+
color={hasWSL === false ? "danger" : undefined}
178+
>
171179
{hasWSL === null ? (
172180
"Checking for wsl..."
173181
) : hasWSL ? (
174182
"WSL is already installed on your system!"
175183
) : (
176184
<>
177-
WSL is not installed on your system. CrossCode can attempt
178-
to automatically install WSL. If it fails, follow the guide
179-
on{" "}
180-
<Link
181-
href="#"
182-
onClick={(e) => {
183-
e.preventDefault();
184-
openUrl(
185-
"https://learn.microsoft.com/en-us/windows/wsl/install"
186-
);
187-
}}
188-
>
189-
microsoft.com
190-
</Link>
191-
.
185+
<ErrorIcon />{" "}
186+
<div>
187+
WSL is not installed on your system. CrossCode can attempt
188+
to automatically install WSL. If it fails, follow the
189+
guide on{" "}
190+
<Link
191+
href="#"
192+
onClick={(e) => {
193+
e.preventDefault();
194+
openUrl(
195+
"https://learn.microsoft.com/en-us/windows/wsl/install"
196+
);
197+
}}
198+
>
199+
microsoft.com
200+
</Link>
201+
.
202+
</div>
192203
</>
193204
)}
194205
</Typography>

0 commit comments

Comments
 (0)