Fix build issues for release

- Fix duplicate tty-fwd file error by removing copy from build.sh
- Add VibeTunnel/Resources/tty-fwd to .gitignore
- Fix SparkleUpdaterManager compilation error
This commit is contained in:
Peter Steinberger 2025-06-17 02:30:31 +02:00
parent 97da1f6a90
commit 648286a63c
3 changed files with 8 additions and 8 deletions

1
.gitignore vendored
View file

@ -84,3 +84,4 @@ web/dist/**/*.js
web/dist/**/*.js.map web/dist/**/*.js.map
web/public/**/*.js web/public/**/*.js
web/public/**/*.js.map web/public/**/*.js.map
VibeTunnel/Resources/tty-fwd

View file

@ -65,10 +65,12 @@ public final class SparkleUpdaterManager: NSObject, SPUUpdaterDelegate {
logger.info("Sparkle updater initialized successfully with automatic downloads enabled") logger.info("Sparkle updater initialized successfully with automatic downloads enabled")
// Start the updater // Start the updater
do { if let controller = updaterController {
try controller.updater.start() do {
} catch { try controller.updater.start()
logger.error("Failed to start Sparkle updater: \(error)") } catch {
logger.error("Failed to start Sparkle updater: \(error)")
}
} }
#endif #endif

View file

@ -81,10 +81,7 @@ if [[ -x "$PROJECT_DIR/tty-fwd/build-universal.sh" ]]; then
# Verify the binary was built # Verify the binary was built
if [[ -f "$PROJECT_DIR/tty-fwd/target/release/tty-fwd-universal" ]]; then if [[ -f "$PROJECT_DIR/tty-fwd/target/release/tty-fwd-universal" ]]; then
echo "✓ tty-fwd universal binary built successfully" echo "✓ tty-fwd universal binary built successfully"
# Copy to Resources folder for inclusion in app bundle # Note: The Xcode build phase will copy this to the app bundle
cp "$PROJECT_DIR/tty-fwd/target/release/tty-fwd-universal" "$PROJECT_DIR/VibeTunnel/Resources/tty-fwd"
chmod +x "$PROJECT_DIR/VibeTunnel/Resources/tty-fwd"
echo "✓ Copied tty-fwd universal binary to Resources folder"
else else
echo "Error: Failed to build tty-fwd universal binary" echo "Error: Failed to build tty-fwd universal binary"
exit 1 exit 1