mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 15:29:26 +00:00
Removed redundant files and updated build script
This commit is contained in:
parent
7157d43168
commit
5a36f978f9
3 changed files with 8 additions and 12 deletions
BIN
Macrame.lnk
BIN
Macrame.lnk
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 100 KiB |
20
build.sh
20
build.sh
|
|
@ -4,34 +4,30 @@
|
||||||
BUILD_DIR="Macrame_$(date +'%m%d%H%M%S')"
|
BUILD_DIR="Macrame_$(date +'%m%d%H%M%S')"
|
||||||
|
|
||||||
# Build the Go application
|
# Build the Go application
|
||||||
cd be
|
|
||||||
# go build -o Macrame.exe main.go
|
|
||||||
go build -ldflags "-H=windowsgui" -o Macrame.exe main.go
|
go build -ldflags "-H=windowsgui" -o Macrame.exe main.go
|
||||||
go build -o Setup.exe setup/setup.go
|
|
||||||
|
|
||||||
# Build the frontend
|
# Build the frontend
|
||||||
cd ../fe
|
cd fe
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
cd ../builds
|
cd ../builds
|
||||||
|
|
||||||
# Create the new build directory
|
# Create the new build directory
|
||||||
mkdir $BUILD_DIR
|
mkdir $BUILD_DIR
|
||||||
mkdir $BUILD_DIR/be
|
|
||||||
mkdir $BUILD_DIR/macros
|
mkdir $BUILD_DIR/macros
|
||||||
mkdir $BUILD_DIR/panels
|
mkdir $BUILD_DIR/panels
|
||||||
|
mkdir $BUILD_DIR/panels/test_panel
|
||||||
mkdir $BUILD_DIR/public
|
mkdir $BUILD_DIR/public
|
||||||
|
mkdir $BUILD_DIR/public/assets
|
||||||
|
|
||||||
# Move the generated files to the new build directory
|
# Move the generated files to the new build directory
|
||||||
cp ../be/Macrame.exe $BUILD_DIR/be/Macrame.exe
|
cp ../Macrame.exe $BUILD_DIR/Macrame.exe
|
||||||
cp ../be/Setup.exe $BUILD_DIR/be/Setup.exe
|
cp ../favicon.ico $BUILD_DIR/favicon.ico
|
||||||
cp ../be/favicon.ico $BUILD_DIR/be/favicon.ico
|
find ../macros -type f ! -name 'ED-*' -exec cp --parents {} "$BUILD_DIR/macros/" \;
|
||||||
cp -r ../macros/* $BUILD_DIR/macros/
|
cp -r ../panels/test_panel/* $BUILD_DIR/panels/test_panel/
|
||||||
cp -r ../panels/* $BUILD_DIR/panels/
|
|
||||||
mv ../public/* $BUILD_DIR/public/
|
mv ../public/* $BUILD_DIR/public/
|
||||||
|
|
||||||
cp ../install.bat $BUILD_DIR/install.bat
|
# cp ../install.bat $BUILD_DIR/install.bat
|
||||||
cp ../Macrame.lnk $BUILD_DIR/Macrame.lnk
|
|
||||||
|
|
||||||
powershell -Command "Compress-Archive -Path $BUILD_DIR/* -DestinationPath $BUILD_DIR.zip -Force"
|
powershell -Command "Compress-Archive -Path $BUILD_DIR/* -DestinationPath $BUILD_DIR.zip -Force"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue