Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: add windows install loading gif (#2462)

Horus1f510799e239
diff --git a/apps/electron/forge.config.js b/apps/electron/forge.config.js
index 54a6f5bf81..82a2e29642 100644
--- a/apps/electron/forge.config.js
+++ b/apps/electron/forge.config.js
@@ -94,7 +94,7 @@ module.exports = {
config: {
name: 'AFFiNE',
setupIcon: icoPath,
- // loadingGif: './resources/icons/loading.gif',
+ loadingGif: './resources/icons/affine_installing.gif',
},
},
],
diff --git a/apps/electron/layers/main/src/index.ts b/apps/electron/layers/main/src/index.ts
index 5f490be3f3..213972fb1f 100644
--- a/apps/electron/layers/main/src/index.ts
+++ b/apps/electron/layers/main/src/index.ts
@@ -10,6 +10,7 @@ import { logger } from './logger';
import { restoreOrCreateWindow } from './main-window';
import { registerProtocol } from './protocol';
+if (require('electron-squirrel-startup')) app.quit();
// allow tests to overwrite app name through passing args
if (process.argv.includes('--app-name')) {
const appNameIndex = process.argv.indexOf('--app-name');
diff --git a/apps/electron/resources/icons/affine_installing.gif b/apps/electron/resources/icons/affine_installing.gif
new file mode 100644
index 0000000000..29555458a7
Binary files /dev/null and b/apps/electron/resources/icons/affine_installing.gif differ