Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/plugin-scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Feb 18, 2025
2 parents 8ca807d + 9bcb95c commit 11174ea
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 1 deletion.
129 changes: 129 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,92 @@ jobs:
./ovr-platform-util upload-quest-build --app-id ${OCULUS_QUEST_APP_ID} --app-secret ${OCULUS_QUEST_APP_SECRET} --apk OpenBrush_Quest1_$VERSION.apk --channel Beta:quest1only --debug_symbols_dir ./arm64-v8a/ --debug-symbols-pattern '*.so' --notes "${CHANGELOG}" --age-group MIXED_AGES
fi
publish_oculus_quest_arborxr:
name: Publish Oculus Quest 2+ Release ArborXR
needs: [configuration, build]
runs-on: ubuntu-latest
if: |
github.event_name == 'push' &&
github.repository == 'icosa-foundation/open-brush' &&
(github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/v'))
steps:
- name: Download Build Artifacts (Oculus Quest 2+)
uses: actions/download-artifact@v4
with:
name: Oculus Quest (2+)
path: build_oculus_quest
- name: Publish Oculus Builds
env:
VERSION: ${{ needs.configuration.outputs.version }}
PRERELEASE: ${{ needs.configuration.outputs.prerelease }}
RAW_CHANGELOG: ${{ needs.configuration.outputs.rawchangelog }}
ARBORXR_ACCESS_TOKEN: ${{ secrets.ARBORXR_ACCESS_TOKEN }}
ARBORXR_ORG_ID: ${{ vars.ARBORXR_ORG_ID }}
ARBORXR_APP_ID: ${{ vars.ARBORXR_Q2_APP_ID }}
ARBORXR_LIVE_CHANNEL: ${{ vars.ARBORXR_Q2_LIVE_CHANNEL }}
ARBORXR_BETA_CHANNEL: ${{ vars.ARBORXR_Q2_BETA_CHANNEL }}
run: |
mkdir releases
mv build_oculus_quest/*/com.Icosa.OpenBrush*apk releases/OpenBrush_Quest_$VERSION.apk
cd releases
wget -O arborxr-cli.zip https://graphql.xrdm.app/download/system-content/channel/fe7633a5-d733-4885-8b3c-580c11c4842d
unzip arborxr-cli.zip
ln -s arborxr-cli-linux-* arborxr-cli
chmod 755 arborxr-cli
if [ "$PRERELEASE" == "false" ]
then
./arborxr-cli content channel upload $ARBORXR_APP_ID --release-channel $ARBORXR_LIVE_CHANNEL OpenBrush_Quest_$VERSION.apk
else
CHANGELOG="${RAW_CHANGELOG}"
./arborxr-cli content channel upload $ARBORXR_APP_ID --release-channel $ARBORXR_BETA_CHANNEL OpenBrush_Quest_$VERSION.apk --release-notes "${CHANGELOG}"
fi
publish_oculus_quest1_arborxr:
name: Publish Oculus Quest 1 Release ArborXR
needs: [configuration, build]
runs-on: ubuntu-latest
if: |
github.event_name == 'push' &&
github.repository == 'icosa-foundation/open-brush' &&
(github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/v'))
steps:
- name: Download Build Artifacts (Oculus Quest 1)
uses: actions/download-artifact@v4
with:
name: Oculus Quest (1)
path: build_oculus_quest1
- name: Publish Oculus Builds
env:
VERSION: ${{ needs.configuration.outputs.version }}
PRERELEASE: ${{ needs.configuration.outputs.prerelease }}
RAW_CHANGELOG: ${{ needs.configuration.outputs.rawchangelog }}
ARBORXR_ACCESS_TOKEN: ${{ secrets.ARBORXR_ACCESS_TOKEN }}
ARBORXR_ORG_ID: ${{ vars.ARBORXR_ORG_ID }}
ARBORXR_APP_ID: ${{ vars.ARBORXR_Q1_APP_ID }}
ARBORXR_LIVE_CHANNEL: ${{ vars.ARBORXR_Q1_LIVE_CHANNEL }}
ARBORXR_BETA_CHANNEL: ${{ vars.ARBORXR_Q1_BETA_CHANNEL }}
run: |
mkdir releases1
mv build_oculus_quest1/*/com.Icosa.OpenBrush*apk releases1/OpenBrush_Quest1_$VERSION.apk
cd releases1
wget -O arborxr-cli.zip https://graphql.xrdm.app/download/system-content/channel/fe7633a5-d733-4885-8b3c-580c11c4842d
unzip arborxr-cli.zip
ln -s arborxr-cli-linux-* arborxr-cli
chmod 755 arborxr-cli
if [ "$PRERELEASE" == "false" ]
then
./arborxr-cli content channel upload $ARBORXR_APP_ID --release-channel $ARBORXR_LIVE_CHANNEL OpenBrush_Quest1_$VERSION.apk
else
CHANGELOG="${RAW_CHANGELOG}"
./arborxr-cli content channel upload $ARBORXR_APP_ID --release-channel $ARBORXR_BETA_CHANNEL OpenBrush_Quest1_$VERSION.apk --release-notes "${CHANGELOG}"
fi
publish_oculus_rift:
name: Publish Oculus Rift Release
needs: [configuration, build]
Expand Down Expand Up @@ -1235,6 +1321,49 @@ jobs:
./pico-cli upload-build --app-id $PICO_APP_ID --app-secret $PICO_APP_SECRET --region noncn --apk OpenBrush_Pico_$VERSION.apk --channel 3 --notes-en "Version $VERSION" --device 'PICO Neo3,PICO Neo3 Pro,PICO Neo3 Eye,PICO 4'
fi
publish_pico_arborxr:
name: Publish Pico Releases ArborXR
needs: [configuration, build]
runs-on: ubuntu-latest
if: |
github.event_name == 'push' &&
github.repository == 'icosa-foundation/open-brush' &&
(github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/v'))
steps:
- name: Download Build Artifacts (Android Pico)
uses: actions/download-artifact@v4
with:
name: Android Pico
path: build_android_pico
- name: Publish Pico Builds
env:
VERSION: ${{ needs.configuration.outputs.version }}
PRERELEASE: ${{ needs.configuration.outputs.prerelease }}
RAW_CHANGELOG: ${{ needs.configuration.outputs.rawchangelog }}
ARBORXR_ACCESS_TOKEN: ${{ secrets.ARBORXR_ACCESS_TOKEN }}
ARBORXR_ORG_ID: ${{ vars.ARBORXR_ORG_ID }}
ARBORXR_APP_ID: ${{ vars.ARBORXR_PICO_APP_ID }}
ARBORXR_LIVE_CHANNEL: ${{ vars.ARBORXR_PICO_LIVE_CHANNEL }}
ARBORXR_BETA_CHANNEL: ${{ vars.ARBORXR_PICO_BETA_CHANNEL }}
run: |
mkdir releases
mv build_android_pico/*/com.Icosa.OpenBrush*apk releases/OpenBrush_Pico_$VERSION.apk
cd releases
wget -O arborxr-cli.zip https://graphql.xrdm.app/download/system-content/channel/fe7633a5-d733-4885-8b3c-580c11c4842d
unzip arborxr-cli.zip
ln -s arborxr-cli-linux-* arborxr-cli
chmod 755 arborxr-cli
if [ "$PRERELEASE" == "false" ]
then
./arborxr-cli content channel upload $ARBORXR_APP_ID --release-channel $ARBORXR_LIVE_CHANNEL OpenBrush_Pico_$VERSION.apk
else
CHANGELOG="${RAW_CHANGELOG}"
./arborxr-cli content channel upload $ARBORXR_APP_ID --release-channel $ARBORXR_BETA_CHANNEL OpenBrush_Pico_$VERSION.apk --release-notes "${CHANGELOG}"
fi
publish_ios_zapbox:
name: Publish Zapbox iOS
needs: [configuration, build]
Expand Down
7 changes: 7 additions & 0 deletions Assets/Scripts/Tools/EraserTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ override public void IntersectionHappenedThisFrame()

override protected bool HandleIntersectionWithWidget(GrabWidget widget)
{
if (widget is MediaWidget)
{
SketchMemoryScript.m_Instance.PerformAndRecordCommand(new HideWidgetCommand(widget));
AudioManager.m_Instance.ShowHideWidget(false, transform.position);
PlayModifyStrokeSound();
return true;
}
return false;
}

Expand Down
2 changes: 2 additions & 0 deletions Assets/Settings/Localization/Localization Settings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ MonoBehaviour:
rid: -2
m_CustomTablePostprocessor:
rid: -2
m_AsynchronousBehaviour: 1
m_UseFallback: 1
- rid: 6394126504158822405
type: {class: LocalizedStringDatabase, ns: UnityEngine.Localization.Settings,
Expand All @@ -72,6 +73,7 @@ MonoBehaviour:
rid: -2
m_CustomTablePostprocessor:
rid: -2
m_AsynchronousBehaviour: 1
m_UseFallback: 1
m_MissingTranslationState: 1
m_NoTranslationFoundMessage: No translation found for '{key}' in {table.TableCollectionName}
Expand Down
2 changes: 1 addition & 1 deletion Assets/XR/Settings/Open XR Package Settings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1927c045052a06d49a9b21fdcaa26db6, type: 3}
m_Name: OculusXRFeature Android
m_EditorClassIdentifier:
m_enabled: 0
m_enabled: 1
nameUi: Meta XR Feature
version: 0.0.1
featureIdInternal: com.meta.openxr.feature.metaxr
Expand Down

0 comments on commit 11174ea

Please # to comment.