Skip to content

Commit ec6bf6f

Browse files
feat(blog): add 2.0.0-alpha.0 (mobile) announcement (tauri-apps#1012)
Co-authored-by: Lorenzo Lewis <[email protected]>
1 parent d1eca07 commit ec6bf6f

File tree

6 files changed

+95
-1
lines changed

6 files changed

+95
-1
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
authors: [lucasfernog]
3+
image: ./tauri_2_0_0_alpha_0/header.png
4+
description: Tauri mobile is here! The first alpha release 2.0.0-alpha.0 has been published.
5+
---
6+
7+
import Tabs from '@theme/Tabs'
8+
import TabItem from '@theme/TabItem'
9+
import iOSPreview from './tauri_2_0_0_alpha_0/ios-preview.png'
10+
import androidPreview from './tauri_2_0_0_alpha_0/android-preview.png'
11+
12+
# Announcing the Tauri Mobile Alpha Release
13+
14+
![Tauri 1.2 Launch Hero Image](./tauri_2_0_0_alpha_0/header.png)
15+
16+
Tauri mobile is here! The first alpha release 2.0.0-alpha.0 has been published.
17+
18+
<!--truncate-->
19+
20+
## Updating dependencies
21+
22+
Make sure to update both NPM and Cargo dependencies to the 2.0.0-alpha.0 release. You can update the NPM dependencies with:
23+
24+
<Tabs groupId="package-manager">
25+
<TabItem value="npm">
26+
27+
```shell
28+
npm install @tauri-apps/cli@next @tauri-apps/api@next
29+
```
30+
31+
</TabItem>
32+
<TabItem value="Yarn Classic">
33+
34+
```shell
35+
yarn upgrade @tauri-apps/cli@next @tauri-apps/api@next
36+
```
37+
38+
</TabItem>
39+
<TabItem value="Yarn Berry">
40+
41+
```shell
42+
yarn up @tauri-apps/cli@next @tauri-apps/api@next
43+
```
44+
45+
</TabItem>
46+
<TabItem value="pnpm">
47+
48+
```shell
49+
pnpm update @tauri-apps/cli@next @tauri-apps/api@next
50+
```
51+
52+
</TabItem>
53+
</Tabs>
54+
55+
To update the Cargo dependencies, run the following in the `src-tauri` folder:
56+
57+
```shell
58+
59+
cargo add [email protected] --build
60+
cargo install tauri-cli --version "^2.0.0-alpha"
61+
```
62+
63+
## Preview
64+
65+
You can adapt your existing desktop application to run on mobile or start a fresh project.
66+
Tauri runs on the connected device or starts an emulator if available.
67+
68+
<div
69+
style={{
70+
display: 'flex',
71+
'flex-direction': 'column',
72+
'align-items': 'center',
73+
gap: '16px',
74+
}}
75+
>
76+
<img className="transparent" src={iOSPreview} alt="iOS preview" />
77+
<img className="transparent" src={androidPreview} alt="Android preview" />
78+
</div>
79+
80+
<br></br>
81+
82+
Read the complete guide on the [next documentation website](https://next--tauri.netlify.app/next/mobile/).
83+
84+
## Known issues
85+
86+
- TLS support has been moved behind a Cargo feature until we figure out how to cross compile OpenSSL on Windows.
87+
- Currently running on a device is not supported when using Xcode 14.
177 KB
Loading
575 KB
Loading
406 KB
Loading

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ async function siteConfig() {
251251
},
252252
announcementBar: {
253253
content:
254-
"<b>🚀 <a id='announcement-link' href='/blog/2022/11/08/tauri-1-2'>Tauri 1.2</a> and <a id='announcement-link' href='/blog/2022/09/19/tauri-egui-0-1'>tauri-egui 0.1</a> have launched!</b>",
254+
"<b>Tauri mobile alpha has launched! <a id='announcement-link' href='/blog/2022/12/09/tauri-mobile-alpha'>Read the blog post</a></b>",
255255
backgroundColor: 'var(--ifm-color-primary)',
256256
textColor: 'var(--ifm-button-color)',
257257
},

src/css/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ html[data-theme='light'] .gitHubIcon::before {
125125
display: none;
126126
}
127127

128+
[data-theme='light'] img.transparent {
129+
background-color: #f6f6f6;
130+
}
131+
[data-theme='dark'] img.transparent {
132+
background-color: #1b1b1d;
133+
}
134+
128135
.anchor-with-padding {
129136
scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem);
130137
}

0 commit comments

Comments
 (0)