add empty `assets.zip` for placeholder

pull/1232/head
HFO4 3 years ago
parent 23bd1389bc
commit ac78e9db02

@ -14,7 +14,7 @@ RUN yarn run build && rm -rf build/*.map
# build backend # build backend
WORKDIR /cloudreve_builder/Cloudreve WORKDIR /cloudreve_builder/Cloudreve
RUN zip -r assets.zip assets RUN zip -r - assets >assets.zip
RUN tag_name=$(git describe --tags) \ RUN tag_name=$(git describe --tags) \
&& export COMMIT_SHA=$(git rev-parse --short HEAD) \ && export COMMIT_SHA=$(git rev-parse --short HEAD) \
&& go build -a -o cloudreve -ldflags " -X 'github.com/HFO4/cloudreve/pkg/conf.BackendVersion=$tag_name' -X 'github.com/HFO4/cloudreve/pkg/conf.LastCommit=$COMMIT_SHA'" && go build -a -o cloudreve -ldflags " -X 'github.com/HFO4/cloudreve/pkg/conf.BackendVersion=$tag_name' -X 'github.com/HFO4/cloudreve/pkg/conf.LastCommit=$COMMIT_SHA'"

@ -32,7 +32,7 @@ buildAssets() {
cd build cd build
rm -rf *.map rm -rf *.map
cd $REPO cd $REPO
zip -r assets.zip assets zip -r - assets >assets.zip
} }
buildBinary() { buildBinary() {

Loading…
Cancel
Save