fix(electron): self-update is pending (#2272)

This commit is contained in:
Himself65
2023-05-09 07:16:07 +08:00
committed by GitHub
parent 4f99ad2db4
commit 1e8c5a4482
3 changed files with 16 additions and 1 deletions
+8
View File
@@ -271,6 +271,14 @@ jobs:
name: Desktop Test
runs-on: ubuntu-latest
environment: development
strategy:
# all combinations: macos-latest x64, macos-latest arm64, windows-latest x64, ubuntu-latest x64
matrix:
spec:
- { os: macos-latest, platform: macos, arch: x64 }
- { os: macos-latest, platform: macos, arch: arm64 }
- { os: ubuntu-latest, platform: linux, arch: x64 }
- { os: windows-latest, platform: windows, arch: x64 }
needs: [build, build-electron]
steps:
- uses: actions/checkout@v3
@@ -0,0 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`ProviderComposer 1`] = `
<DocumentFragment>
test1
</DocumentFragment>
`;
@@ -14,6 +14,7 @@ export const appSidebarWidthAtom = atomWithStorage(
export const updateAvailableAtom = atomWithObservable<boolean>(() => {
return new Observable<boolean>(subscriber => {
subscriber.next(false);
if (typeof window !== 'undefined') {
const isMacosDesktop = environment.isDesktop && environment.isMacOs;
if (isMacosDesktop) {
@@ -25,6 +26,5 @@ export const updateAvailableAtom = atomWithObservable<boolean>(() => {
};
}
}
subscriber.next(false);
});
});