forked from Nookure/NookTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d58952
commit 7dcfb44
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ resources/lang/locales.js | |
/public/hot | ||
result | ||
docker-compose.yaml | ||
release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
start=`date +%s` | ||
|
||
# Build the panel | ||
yarn build:production | ||
|
||
# Mkdir and cd to tmp | ||
mkdir tmp | ||
cd tmp/ | ||
|
||
# Clone the repo | ||
git clone https://github.com/Nookure/NookTheme.git | ||
|
||
cd NookTheme | ||
|
||
# Remove the .git folder | ||
rm -rf .git | ||
|
||
# Copy the Compiled files | ||
cp -r ../../public . | ||
|
||
# Create the tar and zip files | ||
tar -czvf ./NookTheme.tar.gz . | ||
zip -r ./NookTheme.zip . | ||
|
||
rm -rf ../../release/* | ||
|
||
# Create releases folder if it doesn't exist | ||
mkdir ../../release | ||
|
||
# Move the files to releases | ||
mv ./NookTheme.tar.gz ../../release/panel.tar.gz | ||
mv ./NookTheme.zip ../../release/panel.zip | ||
|
||
# Remove the tmp folder | ||
cd ../../ | ||
rm -rf tmp/ | ||
|
||
end=`date +%s` | ||
|
||
# Done | ||
echo "Build in `expr $end - $start` seconds" |