From 18e205078ae32c3464597a0a43563580f10b5139 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Thu, 10 Aug 2023 17:45:48 +0200 Subject: [PATCH] Fix auto updates --- .github/workflows/on_push.yml | 4 ++-- WakaTime/AppDelegate.swift | 3 ++- project.yml | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on_push.yml b/.github/workflows/on_push.yml index 9934d10..8e2e62b 100644 --- a/.github/workflows/on_push.yml +++ b/.github/workflows/on_push.yml @@ -229,7 +229,7 @@ jobs: id: prepare run: | mkdir release - mv ./WakaTime.zip release/wakatime-${{ needs.version.outputs.semver_tag }}.zip + mv ./WakaTime.zip release/macos-wakatime-${{ needs.version.outputs.semver_tag }}.zip - name: "Create release" uses: softprops/action-gh-release@master @@ -241,7 +241,7 @@ jobs: target_commitish: ${{ github.sha }} draft: false files: | - ./release/wakatime-${{ needs.version.outputs.semver_tag }}.zip + ./release/macos-wakatime-${{ needs.version.outputs.semver_tag }}.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - diff --git a/WakaTime/AppDelegate.swift b/WakaTime/AppDelegate.swift index 28ba2cd..a985339 100644 --- a/WakaTime/AppDelegate.swift +++ b/WakaTime/AppDelegate.swift @@ -76,7 +76,8 @@ class AppDelegate: NSObject, NSApplicationDelegate { alert.addButton(withTitle: "OK") alert.runModal() } else { - print(error) + print(String(describing: error)) + NSLog(String(describing: error)) let alert = NSAlert() alert.messageText = "Error" alert.informativeText = error.localizedDescription diff --git a/project.yml b/project.yml index 91a1006..8dcdab2 100644 --- a/project.yml +++ b/project.yml @@ -6,8 +6,8 @@ options: packages: AppUpdater: - url: https://github.com/mxcl/AppUpdater - from: 1.1.1 + url: https://github.com/alanhamlett/AppUpdater + branch: master Firebase: url: https://github.com/firebase/firebase-ios-sdk from: 10.0.0