Remove dimension in gradle and don't display the 'v' in version numbers
This commit is contained in:
@@ -15,7 +15,6 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
hmd: ['Standard']
|
|
||||||
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
|
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -62,7 +61,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew -Psuffix=".github.nightly" -Pwivrn_css=images/wivrn-nightly.css -Pwivrn_app_name="WiVRn Nightly" -Pwivrn_compress_glb=ON assemble${{ matrix.hmd }}${{ matrix.buildtype }}
|
./gradlew -Psuffix=".github.nightly" -Pwivrn_css=images/wivrn-nightly.css -Pwivrn_app_name="WiVRn Nightly" -Pwivrn_compress_glb=ON assemble${{ matrix.buildtype }}
|
||||||
|
|
||||||
- name: Prepare before archiving artifacts
|
- name: Prepare before archiving artifacts
|
||||||
run: |
|
run: |
|
||||||
@@ -75,7 +74,7 @@ jobs:
|
|||||||
- name: Archive APK
|
- name: Archive APK
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apk-${{ matrix.hmd }}-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
name: apk-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
||||||
path: apk/*.apk
|
path: apk/*.apk
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
@@ -83,7 +82,7 @@ jobs:
|
|||||||
if: ${{ matrix.buildtype != 'Release' }}
|
if: ${{ matrix.buildtype != 'Release' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: symbols-${{ matrix.hmd }}-${{ matrix.buildtype }}
|
name: symbols-${{ matrix.buildtype }}
|
||||||
path: debug/**/*.so
|
path: debug/**/*.so
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,6 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
hmd: ['Standard']
|
|
||||||
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus']
|
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -266,7 +265,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(git describe --tags --always)
|
VERSION=$(git describe --tags --always | sed "s/^v\([0-9]\)/\1/")
|
||||||
if [ ${{ matrix.buildtype }} = 'Oculus' ]
|
if [ ${{ matrix.buildtype }} = 'Oculus' ]
|
||||||
then
|
then
|
||||||
SUFFIX=""
|
SUFFIX=""
|
||||||
@@ -305,7 +304,7 @@ jobs:
|
|||||||
-Pwivrn_app_name="$APPNAME" \
|
-Pwivrn_app_name="$APPNAME" \
|
||||||
-Pwivrn_compress_glb=ON \
|
-Pwivrn_compress_glb=ON \
|
||||||
-Pfetchcontent_base_dir=${{github.workspace}}/cmake-fetch \
|
-Pfetchcontent_base_dir=${{github.workspace}}/cmake-fetch \
|
||||||
assemble${{ matrix.hmd }}${{ matrix.buildtype }}
|
assemble${{ matrix.buildtype }}
|
||||||
|
|
||||||
- name: Upload build dir
|
- name: Upload build dir
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -328,7 +327,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ matrix.buildtype != 'Oculus' }}
|
if: ${{ matrix.buildtype != 'Oculus' }}
|
||||||
with:
|
with:
|
||||||
name: apk-${{ matrix.hmd }}-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
name: apk-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
||||||
path: apk/*.apk
|
path: apk/*.apk
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
@@ -336,7 +335,7 @@ jobs:
|
|||||||
if: ${{ matrix.buildtype != 'Release' && matrix.buildtype != 'Oculus' }}
|
if: ${{ matrix.buildtype != 'Release' && matrix.buildtype != 'Oculus' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: symbols-${{ matrix.hmd }}-${{ matrix.buildtype }}
|
name: symbols-${{ matrix.buildtype }}
|
||||||
path: debug/**/*.so
|
path: debug/**/*.so
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
@@ -357,7 +356,7 @@ jobs:
|
|||||||
IS_DRAFT=
|
IS_DRAFT=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./ovr-platform-util upload-quest-build --app-id 7959676140827574 --token $OCULUS_TOKEN --apk apk/WiVRn-standard-oculus.apk --channel $CHANNEL --age-group TEENS_AND_ADULTS $IS_DRAFT --debug_symbols_dir debug/ --debug-symbols-pattern '*.so'
|
./ovr-platform-util upload-quest-build --app-id 7959676140827574 --token $OCULUS_TOKEN --apk apk/WiVRn-oculus.apk --channel $CHANNEL --age-group TEENS_AND_ADULTS $IS_DRAFT --debug_symbols_dir debug/ --debug-symbols-pattern '*.so'
|
||||||
|
|
||||||
build-ubuntu:
|
build-ubuntu:
|
||||||
name: Build Ubuntu package
|
name: Build Ubuntu package
|
||||||
|
|||||||
+5
-42
@@ -126,6 +126,8 @@ android {
|
|||||||
'-DCMAKE_ANDROID_NDK_VERSION=' + ndkVersion,
|
'-DCMAKE_ANDROID_NDK_VERSION=' + ndkVersion,
|
||||||
'-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON',
|
'-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON',
|
||||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||||
|
'-DCMAKE_ANDROID_ASSETS_DIRECTORIES=' + layout.buildDirectory.dir("assets").get().asFile,
|
||||||
|
'-DCMAKE_ANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs").get().asFile,
|
||||||
'-DWIVRN_USE_SYSTEM_BOOST=OFF',
|
'-DWIVRN_USE_SYSTEM_BOOST=OFF',
|
||||||
'-DWIVRN_USE_SYSTEM_FREETYPE=OFF',
|
'-DWIVRN_USE_SYSTEM_FREETYPE=OFF',
|
||||||
'-DWIVRN_USE_ANDROID_BIN_LIBKTX=ON',
|
'-DWIVRN_USE_ANDROID_BIN_LIBKTX=ON',
|
||||||
@@ -141,7 +143,9 @@ android {
|
|||||||
'-DWIVRN_COMPRESS_GLB=' + compressGlb] +
|
'-DWIVRN_COMPRESS_GLB=' + compressGlb] +
|
||||||
fetchcontentBaseDir
|
fetchcontentBaseDir
|
||||||
resValue "string", "app_name", project.hasProperty('wivrn_app_name') ? project.wivrn_app_name : "WiVRn Local"
|
resValue "string", "app_name", project.hasProperty('wivrn_app_name') ? project.wivrn_app_name : "WiVRn Local"
|
||||||
|
abiFilters 'arm64-v8a'//, 'x86_64'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -204,26 +208,13 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
flavorDimensions "device"
|
|
||||||
|
|
||||||
productFlavors {
|
|
||||||
standard {
|
|
||||||
dimension "device"
|
|
||||||
externalNativeBuild {
|
|
||||||
cmake {
|
|
||||||
abiFilters 'arm64-v8a'//, 'x86_64'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
manifest.srcFile 'AndroidManifest.xml'
|
manifest.srcFile 'AndroidManifest.xml'
|
||||||
java.srcDirs = ['client/java']
|
java.srcDirs = ['client/java']
|
||||||
res.srcDirs = [ 'resources', layout.buildDirectory.dir('generated_resources') ]
|
res.srcDirs = [ 'resources', layout.buildDirectory.dir('generated_resources') ]
|
||||||
|
|
||||||
assets.srcDirs 'assets'
|
assets.srcDirs = ['assets', layout.buildDirectory.dir("assets")]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,32 +231,4 @@ android {
|
|||||||
// It probably works with merge${variant.name.capitalize()}Assets too
|
// It probably works with merge${variant.name.capitalize()}Assets too
|
||||||
tasks["generate${variant.name.capitalize()}Assets"].dependsOn "externalNativeBuild${variant.name.capitalize()}"
|
tasks["generate${variant.name.capitalize()}Assets"].dependsOn "externalNativeBuild${variant.name.capitalize()}"
|
||||||
}
|
}
|
||||||
|
|
||||||
productFlavors.all { variant ->
|
|
||||||
sourceSets {
|
|
||||||
"${variant.name}" {
|
|
||||||
assets.srcDirs layout.buildDirectory.dir("assets${variant.name.capitalize()}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
externalNativeBuild{
|
|
||||||
cmake {
|
|
||||||
arguments '-DCMAKE_ANDROID_ASSETS_DIRECTORIES=' + layout.buildDirectory.dir("assets${variant.name.capitalize()}").get().asFile
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildTypes.all { variant ->
|
|
||||||
sourceSets {
|
|
||||||
"${variant.name}" {
|
|
||||||
jniLibs.srcDirs layout.buildDirectory.dir("libs${variant.name.capitalize()}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
externalNativeBuild{
|
|
||||||
cmake {
|
|
||||||
arguments '-DCMAKE_ANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs${variant.name.capitalize()}").get().asFile
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1090,7 +1090,7 @@ void scenes::lobby::gui_debug()
|
|||||||
void scenes::lobby::gui_about()
|
void scenes::lobby::gui_about()
|
||||||
{
|
{
|
||||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||||
CenterTextH(std::string("WiVRn ") + wivrn::git_version);
|
CenterTextH(std::string("WiVRn ") + wivrn::display_version());
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
|
|
||||||
ImGui::Dummy(ImVec2(0, 60));
|
ImGui::Dummy(ImVec2(0, 60));
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ QCoro::Task<> apk_installer::doRefreshLatestVersion()
|
|||||||
{
|
{
|
||||||
std::string name = i["name"];
|
std::string name = i["name"];
|
||||||
|
|
||||||
if (name.ends_with("-standard-release.apk"))
|
if (name.ends_with("-release.apk"))
|
||||||
{
|
{
|
||||||
m_apkUrl = QString::fromStdString(i["browser_download_url"]);
|
m_apkUrl = QString::fromStdString(i["browser_download_url"]);
|
||||||
break;
|
break;
|
||||||
|
|||||||
+3
-3
@@ -96,10 +96,10 @@ From the main directory.
|
|||||||
export ANDROID_HOME=~/Android
|
export ANDROID_HOME=~/Android
|
||||||
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk/
|
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk/
|
||||||
|
|
||||||
./gradlew assembleStandardRelease
|
./gradlew assembleRelease
|
||||||
```
|
```
|
||||||
|
|
||||||
Outputs will be in `build/outputs/apk/standard/release/WiVRn-standard-release.apk`
|
Outputs will be in `build/outputs/apk/release/WiVRn-release.apk`
|
||||||
|
|
||||||
#### Install apk with adb
|
#### Install apk with adb
|
||||||
Before using adb you must enable usb debugging on your device:
|
Before using adb you must enable usb debugging on your device:
|
||||||
@@ -117,7 +117,7 @@ adb start-server
|
|||||||
adb devices
|
adb devices
|
||||||
|
|
||||||
# Install apk
|
# Install apk
|
||||||
adb install build/outputs/apk/standard/release/WiVRn-standard-release.apk
|
adb install build/outputs/apk/release/WiVRn-release.apk
|
||||||
|
|
||||||
# When you're done, you can stop the adb server
|
# When you're done, you can stop the adb server
|
||||||
adb kill-server
|
adb kill-server
|
||||||
|
|||||||
Reference in New Issue
Block a user