Add suffix to package name
".github" for CI builds ".local" by default
This commit is contained in:
@@ -58,7 +58,7 @@ jobs:
|
|||||||
sudo rm /usr/local/bin/cmake
|
sudo rm /usr/local/bin/cmake
|
||||||
"${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager" --install "cmake;3.30.3"
|
"${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager" --install "cmake;3.30.3"
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew assemble${{ matrix.hmd }}${{ matrix.buildtype }}
|
./gradlew -Psuffix=".github" assemble${{ matrix.hmd }}${{ matrix.buildtype }}
|
||||||
|
|
||||||
- name: Prepare before archiving artifacts
|
- name: Prepare before archiving artifacts
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -232,8 +232,10 @@ jobs:
|
|||||||
VERSION=$(git describe --tags)
|
VERSION=$(git describe --tags)
|
||||||
if [ ${{ matrix.buildtype }} = 'Oculus' ]
|
if [ ${{ matrix.buildtype }} = 'Oculus' ]
|
||||||
then
|
then
|
||||||
|
SUFFIX=""
|
||||||
VERSION_CODE=$(git rev-list --count HEAD)
|
VERSION_CODE=$(git rev-list --count HEAD)
|
||||||
else
|
else
|
||||||
|
SUFFIX=".github"
|
||||||
VERSION_CODE=1
|
VERSION_CODE=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -243,7 +245,7 @@ jobs:
|
|||||||
echo Setting version $VERSION and version code $VERSION_CODE in manifest
|
echo Setting version $VERSION and version code $VERSION_CODE in manifest
|
||||||
|
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew -Pwivrn_version=$VERSION -Pwivrn_versionCode=$VERSION_CODE assemble${{ matrix.hmd }}${{ matrix.buildtype }}
|
./gradlew -Pwivrn_version=$VERSION -Pwivrn_versionCode=$VERSION_CODE -Psuffix=$SUFFIX assemble${{ matrix.hmd }}${{ matrix.buildtype }}
|
||||||
|
|
||||||
- name: Prepare before archiving artifacts
|
- name: Prepare before archiving artifacts
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+5
-2
@@ -72,8 +72,8 @@ android {
|
|||||||
compileSdkVersion 32
|
compileSdkVersion 32
|
||||||
targetSdkVersion 32 // for Oculus Store
|
targetSdkVersion 32 // for Oculus Store
|
||||||
|
|
||||||
versionName = project.hasProperty('wivrn_version') ? wivrn_version : "1.0"
|
versionName = project.hasProperty('wivrn_version') ? wivrn_version : "1.0"
|
||||||
versionCode = project.hasProperty('wivrn_versionCode') ? wivrn_versionCode.toInteger() : 1
|
versionCode = project.hasProperty('wivrn_versionCode') ? wivrn_versionCode.toInteger() : 1
|
||||||
|
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
@@ -113,6 +113,7 @@ android {
|
|||||||
|
|
||||||
release {
|
release {
|
||||||
manifestPlaceholders.ComOculusSupportedDevices = "all"
|
manifestPlaceholders.ComOculusSupportedDevices = "all"
|
||||||
|
applicationIdSuffix = project.hasProperty('suffix') ? suffix: ".local"
|
||||||
}
|
}
|
||||||
|
|
||||||
releaseDebuggable {
|
releaseDebuggable {
|
||||||
@@ -131,10 +132,12 @@ android {
|
|||||||
oculus
|
oculus
|
||||||
{
|
{
|
||||||
initWith release
|
initWith release
|
||||||
|
applicationIdSuffix = project.hasProperty('suffix') ? suffix: ""
|
||||||
manifestPlaceholders.ComOculusSupportedDevices = "quest2|quest3|questpro"
|
manifestPlaceholders.ComOculusSupportedDevices = "quest2|quest3|questpro"
|
||||||
}
|
}
|
||||||
|
|
||||||
debug {
|
debug {
|
||||||
|
applicationIdSuffix = project.hasProperty('suffix') ? suffix: ".local"
|
||||||
manifestPlaceholders.ComOculusSupportedDevices = "all"
|
manifestPlaceholders.ComOculusSupportedDevices = "all"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user