Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Commit

Permalink
[postinst] don't bother doing this stuff when DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Jun 18, 2017
1 parent aa21f3c commit 49ec1d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postinst/postinst.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ registerApp(identifier: "ws.hbang.canzone.app", path: URL(fileURLWithPath: "/App
registerPlugIn(identifier: "ws.hbang.canzone.app.nowplayingwidget", path: URL(fileURLWithPath: "/Applications/Canzone.app/PlugIns/CanzoneNowPlayingWidget.appex"))
registerPlugIn(identifier: "ws.hbang.canzone.app.notificationcontent", path: URL(fileURLWithPath: "/Applications/Canzone.app/PlugIns/CanzoneNotificationContent.appex"))

#if !DEBUG
// this could definitely be better: wait a sec for pkd to work itself out
Thread.sleep(forTimeInterval: 1)

Expand All @@ -85,3 +86,4 @@ Thread.sleep(forTimeInterval: 1)
if confirmPlugIns() == .timedOut {
print("⚠️ Hmm, failed… Please try installing or updating an app from the App Store to activate the widget.")
}
#endif

0 comments on commit 49ec1d4

Please sign in to comment.