macos-native: clean branch for cloning and building the Tauri desktop app

Orphan branch with no history — includes the Tauri shell (src-tauri/) and
vendored Three.js (vendor/) that were never pushed before, so a fresh clone
can actually build the native app. Drops the large .pcd sample captures and
editor cruft (.obsidian, .DS_Store); they aren't needed to build or run the
app (point clouds load via drag-and-drop, not bundling).
This commit is contained in:
Dongubak
2026-08-22 02:21:38 +09:00
commit beb4182f04
37 changed files with 66261 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
/target
/web
+4381
View File
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
[package]
name = "pcd-viewer"
version = "0.1.0"
edition = "2021"
rust-version = "1.77.2"
[build-dependencies]
tauri-build = { version = "2.6.3", features = [] }
[dependencies]
tauri = { version = "2.11.5", features = [] }
[profile.release]
codegen-units = 1
lto = true
opt-level = "s"
panic = "abort"
strip = true
+3
View File
@@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
{}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

+7
View File
@@ -0,0 +1,7 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running pcd viewer");
}
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
# Collect the web app into web/ for bundling. The originals at the repo root stay
# the single source of truth — pcd_viewer.html is never edited for the native build.
# The .pcd files are deliberately excluded: DEFAULT_URL is expected to 404 and fall
# back to the drag-and-drop prompt, so bundling 1.2 GB of clouds would buy nothing.
set -eu
here=$(dirname "$0")
root="$here/.."
out="$here/web"
rm -rf "$out"
mkdir -p "$out"
cp "$root/pcd_viewer.html" "$out/"
cp -R "$root/vendor" "$out/"
echo "staged -> $(cd "$out" && pwd)"
+37
View File
@@ -0,0 +1,37 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "PCD Viewer",
"version": "0.1.0",
"identifier": "com.khj.pcdviewer",
"build": {
"frontendDist": "./web",
"beforeDevCommand": "sh ./src-tauri/stage-web.sh",
"beforeBuildCommand": "sh ./src-tauri/stage-web.sh"
},
"app": {
"windows": [
{
"url": "pcd_viewer.html",
"title": "PCD Viewer",
"width": 1440,
"height": 900,
"minWidth": 960,
"minHeight": 640,
"backgroundColor": "#0a0b0c",
"dragDropEnabled": false
}
],
"security": {
"csp": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; connect-src 'self' blob: data: ws: wss:; worker-src 'self' blob:",
"dangerousDisableAssetCspModification": ["script-src", "style-src"]
}
},
"bundle": {
"active": true,
"targets": ["app", "dmg"],
"icon": ["icons/icon.icns"],
"macOS": {
"minimumSystemVersion": "10.15"
}
}
}