Skip to content

Commit

Permalink
fix: simplify build
Browse files Browse the repository at this point in the history
  • Loading branch information
X committed Aug 27, 2024
1 parent 86b8a8c commit 1836980
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 18 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,4 @@ RUN npm ci

COPY . .

# Build
RUN make build

ENTRYPOINT [ "./release.sh" ]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local_reinstall:

build:
NODE_ENV=production make fe
./build.sh beacon
dfx build

test:
cargo clippy --tests --benches -- -D clippy::all
Expand Down
11 changes: 0 additions & 11 deletions build.sh

This file was deleted.

4 changes: 1 addition & 3 deletions dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"beacon": {
"candid": "src/backend/beacon.did",
"package": "beacon",
"type": "custom",
"wasm": "target/wasm32-unknown-unknown/release/beacon.wasm.gz",
"build": "./build.sh beacon",
"type": "rust",
"metadata": [
{
"name": "candid:service",
Expand Down
4 changes: 4 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/sh

export PATH=${HOME}/.local/share/dfx/bin:${PATH}

make start
dfx canister create beacon
make build

0 comments on commit 1836980

Please sign in to comment.