AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

​Desktop app is stuck after release

Open mirtaqi07 opened this issue 1 year ago • 1 comments

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?

  • [ ] Yes

Relevant log output

No response

Anything else?

No response

mirtaqi07 avatar Apr 27 '24 03:04 mirtaqi07

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.

affine-issue-bot[bot] avatar Apr 27 '24 03:04 affine-issue-bot[bot]