1
0
Fork 0
forked from 0x2E/fusion
Commit graph

18 commits

Author SHA1 Message Date
Yuan
6a4e99d0fa
update CI (#163)
* cross-compile in ci

* build docker image for main branch

* default to github registry
2025-04-30 22:52:09 +08:00
rook1e
088ff884fa
chore: switch to pnpm 2025-03-12 19:55:11 +08:00
Michael Lynch
c41f596a50 Pull version string detection out of the frontend
It's tripped me up a few times that version string generation happens in the Vite build.

When someone forks a repo, they don't have the tags, so when they run ./scripts.sh build, the build will fail with a confusing error about git describe.

This adjusts the logic so that we determine the fusion version string in scripts.sh and in the release.yml workflow. It also makes it so that if no version string is available, the frontend defaults to 'unknown-version'.

This should also make it easier for distributions that want to package fusion, as they previously had to apply workarounds to avoid issues related to deriving the version from git:

https://github.com/NixOS/nixpkgs/pull/353616/files#diff-bf194e560f79450a8df2281184c901a7cab6f5da1e25b3b20ec7767e9482ad1e
2025-03-02 09:47:42 -05:00
Yuan
a3c1ffd580
Merge pull request #45 from mtlynch/drop-generate
Remove the gen command from scripts.sh
2024-12-31 00:46:58 +08:00
Michael Lynch
839d125abb Remove the gen command from scripts.sh
I forgot to remove it as part of #39, but this is dead code now and is just a no-op since there's no more go:generate directives in the code.
2024-12-30 11:40:12 -05:00
Michael Lynch
76116b14cf Switch Docker image to use Alpine Linux 2024-12-27 20:11:52 -05:00
Michael Lynch
4b2557488d Build backend using static linking 2024-12-22 12:56:21 -05:00
Michael Lynch
4ba8ee0c91 Use scripts.sh to build within Docker
Docker currently duplicates the build logic from scripts.sh. It's not a big deal now because it's only a couple of standard lines, but if we want to customize the build in the future, it will be useful to have a single, authoritative build script that all build paths use.
2024-12-22 07:20:23 -05:00
Michael Lynch
c0a893a5c0 Use the set -e option in scripts.sh
The set -e option tells /bin/sh to exit immediately when any command terminates with a failing exit code. Using this option allows us to simplify a lot of the logic and remove the && and || exit 1 clauses because they're not necessary with set -e.
2024-12-21 12:54:04 -05:00
rook1e
1162ea898d
chore: update deps 2024-09-29 13:08:30 +08:00
rook1e
6a4e0d9948
refactor: .env file can be replaced by default values 2024-08-02 15:51:50 +08:00
Johnathan Lin
f5fdffd3fd
fix: add the missing build dir (#8) 2024-08-01 12:48:48 +08:00
rook1e
6af14e676c
fix: scripts 2024-03-06 23:18:46 +08:00
rook1e
6e8e8cc7ce
fix: release action 2024-03-06 23:09:24 +08:00
rook1e
2f1bf7ca4f
fix: fe build cmd 2024-03-06 21:13:53 +08:00
rook1e
03e67c062e
fix: actions 2024-03-06 20:56:20 +08:00
rook1e
e1d4e4876e
chore: add dockerfile and doc 2024-03-06 20:48:55 +08:00
rook1e
e9b065e9fb
init 2024-03-06 16:54:13 +08:00