Skip to content

Commit

Permalink
Fix 0.4.2 release (#2670)
Browse files Browse the repository at this point in the history
* Fix 0.4.2 release

* Fix server release

* Put npm bin dir in PATH before running pnpm prep during server build
  • Loading branch information
HeavenVolkoff authored Aug 17, 2024
1 parent ba0ecb6 commit 0af8dbf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sd-desktop"
version = "0.4.1"
version = "0.4.2"

authors = ["Spacedrive Technology Inc <[email protected]>"]
default-run = "sd-desktop"
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ async fn main() -> tauri::Result<()> {
])
.events(collect_events![DragAndDropEvent]);

#[cfg(debug_assertions)]
builder
.export(
Typescript::default()
Expand Down
12 changes: 6 additions & 6 deletions apps/server/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG REPO_REF=main

#--

FROM debian:bookworm as base
FROM debian:bookworm AS base

ADD --chmod=644 --checksum=sha256:8bea540b2cd1a47c94555e746c75fd41a42847a46d8c8c36c7ab6dd9c8526ab4 \
https://gist.githubusercontent.com/HeavenVolkoff/ff7b77b9087f956b8df944772e93c071/raw \
Expand All @@ -18,7 +18,7 @@ RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/

#--

FROM base as build-base
FROM base AS build-base

RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
apt-get install build-essential git sudo unzip wget curl python3 python-is-python3
Expand All @@ -44,7 +44,7 @@ WORKDIR /srv/spacedrive

#--

FROM build-base as web
FROM build-base AS web

# Run pnpm install with docker cache
RUN --mount=type=cache,target=/root/.local/share/pnpm/store --mount=type=cache,target=/root/.cache/pnpm/metadata \
Expand All @@ -56,7 +56,7 @@ RUN pnpm web build

#--

FROM build-base as server
FROM build-base AS server

RUN wget -qO- https://sh.rustup.rs | sh -s -- -yq --profile minimal

Expand All @@ -74,10 +74,10 @@ RUN curl -L# 'https://github.com/rui314/mold/releases/download/v2.4.0/mold-2.4.0
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
env CI=true ./scripts/setup.sh

RUN cd ./scripts; npm i --production
RUN cd ./scripts; npm i --omit=dev && npm i -g prisma

RUN --mount=type=cache,target=/root/.cache/prisma/binaries/cli/ \
pnpm prep
env PATH="$(npm prefix -g)/bin:$PATH" pnpm prep

COPY --from=web /srv/spacedrive/apps/web/dist /srv/spacedrive/apps/web/dist

Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sd-core"
version = "0.4.1"
version = "0.4.2"

authors = ["Spacedrive Technology Inc <[email protected]>"]
description = "Virtual distributed filesystem engine that powers Spacedrive."
Expand Down

0 comments on commit 0af8dbf

Please sign in to comment.