fix(electron): self-update is pending (#2272)
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -271,6 +271,14 @@ jobs:
|
|||||||
name: Desktop Test
|
name: Desktop Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: development
|
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]
|
needs: [build, build-electron]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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>(() => {
|
export const updateAvailableAtom = atomWithObservable<boolean>(() => {
|
||||||
return new Observable<boolean>(subscriber => {
|
return new Observable<boolean>(subscriber => {
|
||||||
|
subscriber.next(false);
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
const isMacosDesktop = environment.isDesktop && environment.isMacOs;
|
const isMacosDesktop = environment.isDesktop && environment.isMacOs;
|
||||||
if (isMacosDesktop) {
|
if (isMacosDesktop) {
|
||||||
@@ -25,6 +26,5 @@ export const updateAvailableAtom = atomWithObservable<boolean>(() => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
subscriber.next(false);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user