Skip to content

Commit 55d64e6

Browse files
committed
fix: dont patch watch apps (again)
i didnt even know there would actually be a .app folder under Watch for the WatchApp pretty wild fr, and yes this will all be released under v1.1.2 in the morning
1 parent 39e21ed commit 55d64e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ipa.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,18 @@ func findPlists(files []*zip.File, pluginsOnly bool) (plists []string, err error
6464
plists = make([]string, 0, 10)
6565

6666
for _, f := range files {
67-
if !pluginsOnly && strings.HasSuffix(f.Name, ".app/Info.plist") {
68-
plists = append(plists, f.Name)
67+
if strings.Contains(f.Name, ".app/Watch") || strings.Contains(f.Name, ".app/WatchKit") || strings.Contains(f.Name, ".app/com.apple.WatchPlaceholder") {
68+
logger.Infof("found watch app at '%s', you might want to remove that", filepath.Dir(f.Name))
6969
continue
7070
}
71-
if !strings.HasSuffix(f.Name, ".appex/Info.plist") {
71+
if strings.HasSuffix(f.Name, ".appex/Info.plist") {
72+
plists = append(plists, f.Name)
7273
continue
7374
}
74-
if strings.Contains(f.Name, ".app/Watch") || strings.Contains(f.Name, ".app/WatchKit") || strings.Contains(f.Name, ".app/com.apple.WatchPlaceholder") {
75-
logger.Infof("found watch app at '%s', you might want to remove that", filepath.Dir(f.Name))
75+
if !pluginsOnly && strings.HasSuffix(f.Name, ".app/Info.plist") {
76+
plists = append(plists, f.Name)
7677
continue
7778
}
78-
plists = append(plists, f.Name)
7979
}
8080

8181
if len(plists) == 0 {

0 commit comments

Comments
 (0)