mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-13 16:16:46 +08:00
fix(electron): self-update is pending (#2272)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user