Skip to content

Commit

Permalink
fix: fake update for macos, simply open miru download page because ma…
Browse files Browse the repository at this point in the history
…cos sucks
  • Loading branch information
ThaUnknown committed Aug 5, 2024
1 parent d32c579 commit ac8d0ef
Show file tree
Hide file tree
Showing 5 changed files with 572 additions and 183 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ jobs:
- name: Build and Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.APPLE_SIGNING_CERT }}
API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_KEY: apple.p8
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
run: cd electron && npm run publish
30 changes: 0 additions & 30 deletions electron/buildResources/notarize.js

This file was deleted.

11 changes: 6 additions & 5 deletions electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "5.2.12",
"version": "5.2.14",
"private": true,
"author": "ThaUnknown_ <[email protected]>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
Expand All @@ -19,10 +19,10 @@
"common": "workspace:*",
"discord-rpc": "4.0.1",
"electron": "29.1.4",
"electron-builder": "^24.13.3",
"electron-log": "^5.1.5",
"electron-builder": "^25.0.3",
"electron-log": "^5.1.7",
"electron-updater": "^6.2.1",
"webpack-merge": "^5.10.0"
"webpack-merge": "^6.0.1"
},
"dependencies": {
"@paymoapp/electron-shutdown-handler": "^1.1.2",
Expand Down Expand Up @@ -61,7 +61,6 @@
"repo": "miru"
}
],
"afterSign": "./buildResources/notarize.js",
"appId": "com.github.thaunknown.miru",
"productName": "Miru",
"files": [
Expand All @@ -73,8 +72,10 @@
"defaultArch": "universal",
"singleArchFiles": "node_modules/+(register-scheme|utp-native|fs-native-extensions)/**",
"category": "public.app-category.video",
"darkModeSupport": true,
"icon": "buildResources/icon.icns",
"hardenedRuntime": true,
"notarize": false,
"entitlements": "buildResources/entitlements.mac.plist",
"target": [
{
Expand Down
3 changes: 2 additions & 1 deletion electron/src/main/updater.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import log from 'electron-log'
import { autoUpdater } from 'electron-updater'
import { ipcMain } from 'electron'
import { ipcMain, shell } from 'electron'

log.initialize({ spyRendererConsole: true })
log.transports.file.level = 'info'
Expand Down Expand Up @@ -37,6 +37,7 @@ export default class Updater {
this.torrentWindow.close()
autoUpdater.quitAndInstall(true, forceRunAfter)
})
if (process.platform === 'darwin') shell.openExternal('https://miru.watch/download')
this.hasUpdate = false
return true
}
Expand Down
Loading

0 comments on commit ac8d0ef

Please sign in to comment.