mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2025-12-26 00:12:50 +00:00
15 lines
386 B
Bash
Executable File
15 lines
386 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
export NODE_OPTIONS="--max-old-space-size=8192"
|
|
|
|
# This script is used to build the assets for the application.
|
|
cd assets
|
|
rm -rf build
|
|
yarn install --network-timeout 1000000
|
|
yarn version --new-version $1 --no-git-tag-version
|
|
yarn run build
|
|
|
|
# Copy the build files to the application directory
|
|
cd ../
|
|
zip -r - assets/build >assets.zip
|
|
mv assets.zip application/statics |