Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mofidy web-ui in aw-server #633

Open
Datpt0205 opened this issue Feb 14, 2025 · 2 comments
Open

Mofidy web-ui in aw-server #633

Datpt0205 opened this issue Feb 14, 2025 · 2 comments

Comments

@Datpt0205
Copy link

I edited aw-webui in aw-server but nothing changed, how can I apply them after editing?

@0xbrayo
Copy link
Member

0xbrayo commented Feb 23, 2025

Read README.md

@RTnhN
Copy link

RTnhN commented Mar 1, 2025

I actually have this problem too. Is the static bundled into the aw-server-rust.exe? I can even delete the static folders referenced in the readme, and it still works. I cleared the cache or even tried different browsers. I am still unable to use modified static files.

In fact, it looks like they might be embedded here: ActivityWatch/aw-server-rust@26acc28

This change was made like a year and a half ago.

The documentation was last updated 3-4 years ago. Is it still valid? I don't think it is.

Image

Edit: it seems that it is built into the aw-server-rust.exe. To use the new webui changes with the build, you need to:

  1. Clone the aw-server-rust repo
  2. git submodule update --init --recursive the repo to get the webui repo
  3. Change the remote of the repo to the remote of your repo. You might also be able to just put your dist in the aw-webui folder. If so, skip to 6.
  4. Pull your changes
  5. Build the aw-webui repo like normal according to the readme
  6. Run cargo build --release. That yields aw-server.exe and aw-sync.exe files under the target folder
  7. Rename aw-server.exe to aw-server-rust.exe
  8. Replace the aw-sync.exe and aw-server-rust.exe in the C:\Users\user\AppData\Local\Programs\ActivityWatch\aw-server-rust directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants