-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·37 lines (31 loc) · 1004 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·37 lines (31 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Build script for TwoFactorAuth macOS app
echo "Building TwoFactorAuth for macOS..."
# Check if Xcode is installed
if ! command -v xcodebuild &> /dev/null; then
echo "Error: Xcode is not installed. Please install Xcode from the Mac App Store."
exit 1
fi
# Clean previous builds
echo "Cleaning previous builds..."
rm -rf build/
# Build using Swift Package Manager (if you want to build from command line)
echo "Building with Swift..."
swift build -c release
echo "Build complete!"
echo ""
echo "To run the app from Xcode:"
echo "1. Open Xcode"
echo "2. File > New > Project"
echo "3. Choose macOS > App"
echo "4. Use SwiftUI interface and Swift language"
echo "5. Name it 'TwoFactorAuth'"
echo "6. Replace the generated files with the files in this directory"
echo "7. Build and run (Cmd+R)"
echo ""
echo "The app includes:"
echo "- TOTP code generation"
echo "- QR code scanning"
echo "- Secure keychain storage"
echo "- Import/Export functionality"
echo "- Account management"