fix: workflow directory
This commit is contained in:
1 parent
465d3dba8b
commit
16b28004cf
2 files changed
+11
-6
No files matched your search
@@ -84,13 +84,18 @@ jobs:
|
|||||||
name: frontend-dist
|
name: frontend-dist
|
||||||
path: public/
|
path: public/
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary (Unix)
|
||||||
|
if: matrix.target != 'windows-x64'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p binaries
|
mkdir -p binaries
|
||||||
bun build server/index.ts \
|
bun build server/index.ts --compile --target ${{ matrix.bun-target }} --outfile ${{ matrix.binary }}
|
||||||
--compile \
|
|
||||||
--target ${{ matrix.bun-target }} \
|
- name: Build binary (Windows)
|
||||||
--outfile ${{ matrix.binary }}
|
if: matrix.target == 'windows-x64'
|
||||||
|
run: |
|
||||||
|
New-Item -ItemType Directory -Force -Path binaries
|
||||||
|
bun build server/index.ts --compile --target ${{ matrix.bun-target }} --outfile ${{ matrix.binary }}
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
- name: Package archive (Windows)
|
- name: Package archive (Windows)
|
||||||
if: matrix.target == 'windows-x64'
|
if: matrix.target == 'windows-x64'
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
"dev": "concurrently \"vite\" \"tsx watch server/index.ts\"",
|
"dev": "concurrently \"vite\" \"tsx watch server/index.ts\"",
|
||||||
"dev:server": "tsx watch server/index.ts",
|
"dev:server": "tsx watch server/index.ts",
|
||||||
"dev:client": "vite",
|
"dev:client": "vite",
|
||||||
"build": "vite build",
|
"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",
|
"build:bun:linux": "bun build server/index.ts --compile --target bun-linux-x64 --outfile binaries/fankarr-linux-x64",
|
||||||
"build:bun:windows": "bun build server/index.ts --compile --target bun-windows-x64 --outfile binaries/fankarr-windows-x64.exe",
|
"build:bun:windows": "bun build server/index.ts --compile --target bun-windows-x64 --outfile binaries/fankarr-windows-x64.exe",
|
||||||
"build:bun:macos": "bun build server/index.ts --compile --target bun-darwin-arm64 --outfile binaries/fankarr-macos",
|
"build:bun:macos": "bun build server/index.ts --compile --target bun-darwin-arm64 --outfile binaries/fankarr-macos",
|
||||||
|
|||||||
Reference in new issue
Block a user