Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: binaries
path: dpkit/compile/build/*.zip
path: dpkit/compile/binaries/*.zip

test-linux:
needs: [test-compile]
Expand Down Expand Up @@ -70,9 +70,9 @@ jobs:
uses: actions/download-artifact@v5
with:
name: binaries
path: dpkit/compile/build
path: dpkit/compile/binaries
- name: Test Binaries
run: unzip -j dpkit/compile/build/*linux-x64.zip && ./dp --version
run: unzip -j dpkit/compile/binaries/*linux-x64.zip && ./dp --version

services:
postgres:
Expand Down Expand Up @@ -119,9 +119,9 @@ jobs:
uses: actions/download-artifact@v5
with:
name: binaries
path: dpkit/compile/build
path: dpkit/compile/binaries
- name: Test Binaries
run: unzip -j dpkit/compile/build/*macos-arm64.zip && ./dp --version
run: unzip -j dpkit/compile/binaries/*macos-arm64.zip && ./dp --version

test-windows:
needs: [test-compile]
Expand Down Expand Up @@ -149,10 +149,10 @@ jobs:
uses: actions/download-artifact@v5
with:
name: binaries
path: dpkit/compile/build
path: dpkit/compile/binaries
- name: Test Binaries
shell: bash
run: unzip -j dpkit/compile/build/*windows-x64.zip && ./dp.exe --version
run: unzip -j dpkit/compile/binaries/*windows-x64.zip && ./dp.exe --version

# We have to split the release step because for some reason
# using semantic-release before compilation inflates the binary sizes
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
draft: false
files: dpkit/compile/build/*.zip
files: dpkit/compile/binaries/*.zip
tag_name: v${{ needs.release-draft.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ dist/
.serena/
.mcp.json
.env
dp
11 changes: 5 additions & 6 deletions dpkit/scripts/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ function makeShell(...paths: string[]) {

const $root = makeShell("..")
const $compile = makeShell("..", "compile")
const $build = makeShell("..", "compile", "build")
const $binaries = makeShell("..", "compile", "binaries")

// Cleanup

await $root`rm -rf build`
await $root`rm -rf compile`
await $root`mkdir compile`

Expand Down Expand Up @@ -94,17 +93,17 @@ for (const target of targets) {
await $compile`
bun build main.ts
--compile
--outfile build/${folder}/dp
--outfile binaries/${folder}/dp
--target ${target.name}
`

// For some reason bun creates it with no permissions
if (target.name.startsWith("bun-windows")) {
await $build`chmod +r ${folder}/dp.exe`
await $binaries`chmod +r ${folder}/dp.exe`
}

await $build`zip -r ${folder}.zip ${folder}`
await $build`rm -rf ${folder}`
await $binaries`zip -r ${folder}.zip ${folder}`
await $binaries`rm -rf ${folder}`

await $compile`rm -rf node_modules/${target.polars}`
//await $compile`rm -rf node_modules/${target.libsql}`
Expand Down
12 changes: 6 additions & 6 deletions site/public/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# This script installs dpkit
#
# Quick install: `curl https://dpkit.dev/install.sh | sh`
# Quick install: `curl -fsSL https://dpkit.dev/install.sh | sh`
#
# Acknowledgments:
# - eget (https://github.com/zyedidia/eget)
Expand Down Expand Up @@ -54,21 +54,21 @@ fi

if [ "x$platform" = "x" ]; then
cat << 'EOM'
/=====================================\\
| COULD NOT DETECT PLATFORM |
\\=====================================/
Uh oh! We couldn't automatically detect your operating system.
We couldn't automatically detect your operating system.

To continue with installation, please choose from one of the following values:
- linux-x64
- linux-arm64
- macos-x64
- macos-arm64
- windows-x64

Export your selection as the DPKIT_PLATFORM environment variable, and then
re-run this script.

For example:
$ export DPKIT_PLATFORM=linux-x64
$ curl https://dpkit.dev/install.sh | sh
$ curl -fsSL https://dpkit.dev/install.sh | sh
EOM
exit 1
else
Expand Down
Loading