Skip to content

Commit

Permalink
Use scene-viewer 1.0 instead of 1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffrank913 committed Dec 3, 2024
1 parent 1b79719 commit b5c39d7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,36 @@ jobs:
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Bump version to beta
- name: Check existing beta versions
id: beta-branch-check
run: |
npm version prerelease --preid=beta --no-git-tag-version
current_version=$(node -p "require('./package.json').version")
prefix="beta/v$current_version-beta"
last_beta=$(git tag | grep "^${prefix}" | sort -V | tail -n 1)
if [ -z "$last_beta" ]; then
next_beta="${prefix}.1"
else
beta_number=$(echo $last_beta | awk -F '.' '{print $NF}')
next_beta="${prefix}.$((beta_number + 1))"
fi
echo "next_beta=$next_beta" >> $GITHUB_ENV
- name: Bump to next beta version
run: |
new_version=$(echo $next_beta | sed 's|beta/v||')
npm version $new_version --no-git-tag-version
git add package.json
- name: Create beta branch
run: |
git checkout -b ${{ env.next_beta }}
- name: Build DIVE
run: yarn build

- name: Add build files
run: git add ./build -f

- name: 'Create beta branch'
run:
git checkout -b beta/v$(node -p "require('./package.json').version")

- name: Commit changes
run: |
git commit -m "Beta v$(node -p "require('./package.json').version")"
Expand Down
2 changes: 1 addition & 1 deletion src/ar/AR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class DIVEAR {
encodeURIComponent(modelUrl.toString()),
);

const intent = `intent://arvr.google.com/scene-viewer/1.2?${
const intent = `intent://arvr.google.com/scene-viewer/1.0?${
params.toString() + '&file=' + modelUrl.toString()
}#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(
locationUrl.toString(),
Expand Down
8 changes: 6 additions & 2 deletions src/dive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,17 @@ export default class DIVE {
},
};

console.log(`DIVE ${pkgjson.version} initialized successfully!`);
if (process.env.DIVE_NODE_ENV === 'development') {
console.log('DIVE is running in development mode.');
}
console.log(`
@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@
@@@@+-:::::::---------------------==------------------------------=#@@@@
@@%=::::.......::---------------------------------------------------------+@@
@@+:::...........::-----------------------------------------------------------#@@
@@=:::.........::::::--------------${' DIVE ' + pkgjson.version.padStart(7, ' ') + ' '}---------------------------------%@
@%:::.......:::::::-------------------${process.env.DIVE_NODE_ENV === 'development' ? ' DEV MODE ' : '--------------'}------------------------------------#@
@@=:::.........::::::-------------------------------------------------------------%@
@%:::.......:::::::-----------------------------------------------------------------#@
@*:::.....:::::-----------------------------------------------------------------------*@
@%::::::.::::---------------------------------------------------------------------------@@
@@-:::::::::-----------------------------------------------------------------------------=@
Expand Down

0 comments on commit b5c39d7

Please sign in to comment.