You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/minimal/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
As of 2024-09-19, this is a thrown together, very quick copy-paste of the minimal example from the original [ZigAndroidTemplate](https://github.com/ikskuh/ZigAndroidTemplate/blob/master/examples/minimal/main.zig) repository.
4
4
5
+
### Build and run natively on your operating system or install/run on Android device
6
+
7
+
```sh
8
+
zig build run # Native
9
+
zig build run -Dandroid # Android
10
+
```
11
+
5
12
### Build, install to test one target against a local emulator and run
Copy file name to clipboardExpand all lines: examples/sdl2/README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
This is a copy-paste of [Andrew Kelly's SDL Zig Demo](https://github.com/andrewrk/sdl-zig-demo) but running on Android. The build is setup so you can also target your native operating system as well.
4
4
5
+
### Build and run natively on your operating system or install/run on Android device
6
+
7
+
```sh
8
+
zig build run # Native
9
+
zig build run -Dandroid # Android
10
+
```
11
+
5
12
### Build, install to test one target against a local emulator and run
6
13
7
14
```sh
@@ -17,12 +24,6 @@ zig build -Dandroid=true
17
24
adb install ./zig-out/bin/sdl-zig-demo.apk
18
25
```
19
26
20
-
### Build and run natively on your operating system
21
-
22
-
```sh
23
-
zig build run
24
-
```
25
-
26
27
### Uninstall your application
27
28
28
29
If installing your application fails with something like:
0 commit comments