-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
126 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[target.aarch64-linux-android.openxr_loader] | ||
rustc-link-search = ["runtime_libs/arm64-v8a"] |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: deploy android/quest apk to gh-pages | ||
on: | ||
workflow_run: | ||
branches: [main] | ||
workflows: [CI] | ||
types: [completed] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-android | ||
|
||
- run: mkdir dist | ||
- run: cp target/x/release/android/osmeta.apk dist/osmeta.apk | ||
|
||
- uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist | ||
keep_files: true |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "runtime_libs"] | ||
path = runtime_libs | ||
url = https://github.com/DerKarlos/OSMeta.git | ||
branch = binaries |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Build for android | ||
|
||
On windows hosts, install `llvm` (contains `clang`) from https://github.com/llvm/llvm-project/releases/ | ||
|
||
``` | ||
cargo install --git https://github.com/NiklasEi/xbuild | ||
``` | ||
|
||
run `x doctor` to see what else you need to install for android, then run | ||
|
||
``` | ||
x build --release --platform android --format apk --arch arm64 | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
android: | ||
runtime_libs: | ||
- "runtime_libs" | ||
manifest: | ||
package: "osm.eta.app" | ||
application: | ||
label: "OSMeta" | ||
theme: "@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen" | ||
meta_data: | ||
- name: "com.oculus.intent.category.VR" | ||
value: "vr_only" | ||
- name: "com.samsung.android.vr.application.mode" | ||
value: "vr_only" | ||
- name: "com.oculus.supportedDevices" | ||
value: "quest|quest2|quest3|questpro" | ||
activities: | ||
- config_changes: "density|keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|uiMode" | ||
launch_mode: "singleTask" | ||
orientation: "landscape" | ||
intent_filters: | ||
- actions: | ||
- "android.intent.action.MAIN" | ||
categories: | ||
- "com.oculus.intent.category.VR" | ||
- "android.intent.category.LAUNCHER" | ||
sdk: | ||
target_sdk_version: 32 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
osmeta::main(); | ||
} |
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