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).
@@ -0,0 +1,2 @@
|
||||
/target
|
||||
/web
|
||||
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
tauri_build::build()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 77 KiB |
@@ -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");
|
||||
}
|
||||
@@ -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)"
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||