-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance the build scripts to support compilation for the aarch64 arch…
…itecture on CentOS and Ubuntu systems. (#704) (#705) Co-authored-by: gaojianda <[email protected]> (cherry picked from commit e5d79a5) Co-authored-by: fire_checken <[email protected]>
- Loading branch information
1 parent
c0f9b03
commit 323e437
Showing
5 changed files
with
72 additions
and
2 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
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
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,43 @@ | ||
#!/usr/bin/env bash | ||
# package studio as one rpm and tar.gz | ||
|
||
set -ex | ||
|
||
DIR=`pwd` | ||
STUDIO=$DIR/source/nebula-graph-studio | ||
SERVER=$STUDIO/server/api/studio | ||
|
||
cd $STUDIO | ||
VERSION=`cat package.json | grep '"version":' | awk 'NR==1{print $2}' | awk -F'"' '{print $2}'` | ||
|
||
# build rpm target dir | ||
RPM_TARGET=$DIR/package | ||
mkdir -p $RPM_TARGET | ||
|
||
cp -r $STUDIO/scripts/rpm $RPM_TARGET/scripts/ | ||
cp $RPM_TARGET/scripts/CMakeLists.txt $RPM_TARGET/ | ||
|
||
cp -r $SERVER/etc $RPM_TARGET/ | ||
cp -r $SERVER/server $RPM_TARGET/ | ||
|
||
cd $RPM_TARGET | ||
sed -i 's/x86_64/aarch64/g' CMakeLists.txt | ||
mkdir -p tmp | ||
cmake . -B ./tmp | ||
cd ./tmp | ||
cpack -G RPM | ||
ls -a | ||
|
||
# build target dir | ||
TAR_TARGET=$DIR/nebula-graph-studio | ||
mkdir -p $TAR_TARGET | ||
|
||
cp -r $SERVER/etc $TAR_TARGET/ | ||
cp -r $SERVER/server $TAR_TARGET/ | ||
|
||
cd $DIR | ||
tar -czf nebula-graph-studio-$VERSION.arrch64.tar.gz nebula-graph-studio | ||
|
||
# build docker-compose dir | ||
cd $DIR | ||
tar -czf nebula-graph-studio-$VERSION.tar.gz -C $STUDIO/deployment/docker . |
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
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,25 @@ | ||
#!/usr/bin/env bash | ||
# package studio as one deb | ||
|
||
set -ex | ||
|
||
DIR=`pwd` | ||
STUDIO=$DIR/source/nebula-graph-studio | ||
SERVER=$STUDIO/server/api/studio | ||
|
||
# build target dir | ||
PACKAGE=$DIR/package | ||
mkdir -p $PACKAGE | ||
|
||
cp -r $STUDIO/scripts/deb $PACKAGE/lib/ | ||
cp $PACKAGE/lib/CMakeLists.txt $PACKAGE/ | ||
|
||
cp -r $SERVER/etc $PACKAGE/ | ||
cp -r $SERVER/server $PACKAGE/ | ||
|
||
cd $PACKAGE | ||
sed -i 's/x86_64/aarch64/g' CMakeLists.txt | ||
mkdir -p tmp | ||
cmake . -B ./tmp | ||
cd ./tmp | ||
cpack -G DEB |