Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
620aac6b38 | ||
|
|
e99e413e4e | ||
|
|
fb578cf9f9 | ||
|
|
78e3055344 | ||
|
|
15f5847c97 | ||
|
|
8736b58d8c | ||
|
|
12e8e2f93a | ||
|
|
ed2306bb70 | ||
|
|
b3fd57c2c8 | ||
|
|
c2da12409a | ||
|
|
178a57c444 | ||
|
|
1afe13c555 |
No files matched your search
@@ -98,7 +98,7 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Build worker
|
- name: Build worker
|
||||||
run: bun build server/organize-worker.ts --outfile organize-worker.js
|
run: bun build server/organize-worker.ts --target node --outfile organize-worker.js
|
||||||
|
|
||||||
- name: Package archive (Windows)
|
- name: Package archive (Windows)
|
||||||
if: matrix.target == 'windows-x64'
|
if: matrix.target == 'windows-x64'
|
||||||
|
|||||||
@@ -1,5 +1,26 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.10.3](https://github.com/Masutayunikon/FanKarr/compare/v1.10.2...v1.10.3) (2026-03-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* worker path ([360572b](https://github.com/Masutayunikon/FanKarr/commit/360572b8be64dafbb452dfcb849a40305bf1b8cf))
|
||||||
|
|
||||||
|
## [1.10.2](https://github.com/Masutayunikon/FanKarr/compare/v1.10.1...v1.10.2) (2026-03-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add target node ([58b09f2](https://github.com/Masutayunikon/FanKarr/commit/58b09f2267345c60ed589c160f7e47698e9be9a4))
|
||||||
|
|
||||||
|
## [1.10.1](https://github.com/Masutayunikon/FanKarr/compare/v1.10.0...v1.10.1) (2026-03-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add target node ([6c629e0](https://github.com/Masutayunikon/FanKarr/commit/6c629e0f6b4d38453cfb22fd315e02d9e8750c45))
|
||||||
|
|
||||||
## [1.10.0](https://github.com/Masutayunikon/FanKarr/compare/v1.9.5...v1.10.0) (2026-03-13)
|
## [1.10.0](https://github.com/Masutayunikon/FanKarr/compare/v1.9.5...v1.10.0) (2026-03-13)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -8,9 +8,9 @@
|
|||||||
"dev:server": "tsx watch server/index.ts",
|
"dev:server": "tsx watch server/index.ts",
|
||||||
"dev:client": "vite",
|
"dev:client": "vite",
|
||||||
"build": "vite build && tsc -p tsconfig.server.json",
|
"build": "vite build && tsc -p tsconfig.server.json",
|
||||||
"build:bun:linux": "bun build server/index.ts --compile --target bun-linux-x64 --outfile binaries/fankarr-linux-x64 && bun build server/organize-worker.ts --outfile binaries/organize-worker.js",
|
"build:bun:linux": "bun build server/index.ts --compile --target bun-linux-x64 --outfile binaries/fankarr-linux-x64 && bun build server/organize-worker.ts --target node --outfile binaries/organize-worker.js",
|
||||||
"build:bun:windows": "bun build server/index.ts --compile --target bun-windows-x64 --outfile binaries/fankarr-windows-x64.exe && bun build server/organize-worker.ts --outfile binaries/organize-worker.js",
|
"build:bun:windows": "bun build server/index.ts --compile --target bun-windows-x64 --outfile binaries/fankarr-windows-x64.exe && bun build server/organize-worker.ts --target node --outfile binaries/organize-worker.js",
|
||||||
"build:bun:macos": "bun build server/index.ts --compile --target bun-darwin-arm64 --outfile binaries/fankarr-macos && bun build server/organize-worker.ts --outfile binaries/organize-worker.js",
|
"build:bun:macos": "bun build server/index.ts --compile --target bun-darwin-arm64 --outfile binaries/fankarr-macos && bun build server/organize-worker.ts --target node --outfile binaries/organize-worker.js",
|
||||||
"build:bun:all": "pnpm build:bun:linux && pnpm build:bun:windows && pnpm build:bun:macos",
|
"build:bun:all": "pnpm build:bun:linux && pnpm build:bun:windows && pnpm build:bun:macos",
|
||||||
"start": "node dist/server/index.js",
|
"start": "node dist/server/index.js",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
|
|||||||
+4
-3
@@ -17,9 +17,10 @@ let workerRunning = false
|
|||||||
// En binaire Bun compilé : le worker est à côté de l'exécutable
|
// En binaire Bun compilé : le worker est à côté de l'exécutable
|
||||||
// En Docker/dev : à côté du fichier courant
|
// En Docker/dev : à côté du fichier courant
|
||||||
function resolveWorkerPath(): string {
|
function resolveWorkerPath(): string {
|
||||||
const _isBunBinary = typeof (globalThis as any).Bun !== 'undefined'
|
// Si Bun est présent → le worker est toujours à côté de l'exécutable
|
||||||
&& path.dirname((process as any).execPath) !== process.cwd()
|
// (que ce soit un binaire compilé ou `bun run` en dev)
|
||||||
if (_isBunBinary) {
|
// En Node/tsx → on utilise import.meta.url
|
||||||
|
if (typeof (globalThis as any).Bun !== 'undefined') {
|
||||||
return path.join(path.dirname((process as any).execPath), 'organize-worker.js')
|
return path.join(path.dirname((process as any).execPath), 'organize-worker.js')
|
||||||
}
|
}
|
||||||
return path.join(path.dirname(new URL(import.meta.url).pathname), 'organize-worker.js')
|
return path.join(path.dirname(new URL(import.meta.url).pathname), 'organize-worker.js')
|
||||||
|
|||||||
Reference in new issue
Block a user