toeverything / AFFiNE

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.
https://affine.pro
Other
35.56k stars 2.35k forks source link

​Desktop app is stuck after release #6716

Open mirtaqi07 opened 2 months ago

mirtaqi07 commented 2 months ago

What happened?

I followed these steps; the final build didn't give any error, but the app is stuck & displays nothing. Kindly correct me what I've done wrong.

Steps

# these to build the electron
@echo off

echo step 1: clean up...
for /d /r .\ %%i in (node_modules) do if exist "%%i" rd /s /q "%%i"
git checkout .
set build_type=canary

echo step 2: install web dependencies
set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
set SENTRYCLI_SKIP_DOWNLOAD=1
set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
set HUSKY=1 
yarn

echo step 3: building frontend
yarn run dev
yarn workspace @affine/native build
yarn run dev:electron

echo step 4: generate assets
set BUILD_TYPE=%build_type%
yarn workspace @affine/electron generate-assets

# cleanup node_modules
for /d /r .\ %%i in (node_modules) do if exist "%%i" rd /s /q "%%i"

echo step 5: install electron dependencies
yarn config set nmHoistingLimits workspaces
yarn config set enableScripts false
yarn config set nmMode classic
set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
set HUSKY=0
yarn add

echo step 6: build native
yarn workspace @affine/native build
yarn workspace @affine/storage build

echo step 7: build electron
yarn workspace @affine/electron build

echo step 8: package electron
set SKIP_GENERATE_ASSETS=1
set BUILD_TYPE=%build_type%
set HOIST_NODE_MODULES=1
yarn workspace @affine/electron package

So, at the end, the build was success with yarn workspace @affine/electron package and it didn't give that previous error on opening the exe. But the software somehow is stuck, and it displays nothing.

Software

1713973400607

Task Manager

1

Distribution version

Windows x64

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

Relevant log output

No response

Anything else?

No response

affine-issue-bot[bot] commented 2 months ago

Issue Status: 🧑‍💻 To Reproduce

🧑‍💻 To Reproduce

We will try to find the steps needed to reproduce the issue on our side.

This is an automatic reply by the bot.