-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·42 lines (33 loc) · 1.18 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·42 lines (33 loc) · 1.18 KB
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
38
39
40
41
42
#!/bin/bash
set -e
APP_NAME="Signal"
APP_DIR="$APP_NAME.app"
CONTENTS_DIR="$APP_DIR/Contents"
MACOS_DIR="$CONTENTS_DIR/MacOS"
RESOURCES_DIR="$CONTENTS_DIR/Resources"
echo "🧹 Eski derleme temizleniyor..."
killall Signal 2>/dev/null || true
rm -rf "$APP_DIR"
echo "📁 Dizin yapısı oluşturuluyor..."
mkdir -p "$MACOS_DIR"
mkdir -p "$RESOURCES_DIR"
echo "📝 Info.plist kopyalanıyor..."
cp Info.plist "$CONTENTS_DIR/"
echo "🖼️ İkon ve Sesler kopyalanıyor..."
cp Resources/AppIcon.icns "$RESOURCES_DIR/" 2>/dev/null || true
cp -r Resources/Sounds "$RESOURCES_DIR/" 2>/dev/null || true
echo "🛠️ Swift kodları derleniyor..."
# Find all swift source files
SOURCES=$(find Source -name "*.swift")
swiftc -g -Onone \
-target arm64-apple-macosx13.0 \
-Xlinker -rpath -Xlinker @executable_path/../Frameworks \
$SOURCES -o "$MACOS_DIR/$APP_NAME"
echo "🔐 Uygulama Kod İmzası (Code Sign) oluşturuluyor..."
find "$APP_DIR" -name ".DS_Store" -delete
find "$APP_DIR" -name "._*" -delete
xattr -cr "$APP_DIR"
codesign -s "-" --force --deep "$APP_DIR"
echo "✅ Derleme başarılı! Uygulama '$APP_DIR' olarak hazırlandı."
echo "🚀 Uygulama başlatılıyor..."
open "$APP_DIR"