-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add build deb script * update ignore file * move ymir version to a single file --------- Co-authored-by: ymir <[email protected]>
- Loading branch information
Showing
6 changed files
with
51 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -93,3 +93,5 @@ ymir/backend/static | |
.husky/ | ||
|
||
*/updater/app/mir/protos/*.pyi | ||
|
||
*.deb |
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,35 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# get version | ||
YMIR_VERSION=`cat ../ymir/command/mir/YMIR_VERSION` | ||
|
||
mkdir deb-workplace/DEBIAN/ -p | ||
mkdir deb-workplace/usr/ymir -p | ||
cp ../ymir.sh ../.env ../docker-compose.dev.yml ../docker-compose.labelfree.yml \ | ||
../docker-compose.label_studio.yml ../docker-compose.modeldeploy.yml ../docker-compose.yml \ | ||
deb-workplace/usr/ymir | ||
|
||
cat <<EOT > deb-workplace/DEBIAN/control | ||
Package: YMIR | ||
Version: ${YMIR_VERSION} | ||
Priority: optional | ||
Depends: | ||
Suggests: | ||
Architecture: amd64 | ||
Maintainer: ymir | ||
Provides: ymir | ||
Description: YMIR | ||
EOT | ||
|
||
cat <<EOT > deb-workplace/DEBIAN/postinst | ||
#!/bin/sh | ||
echo "Successfully installed ymir, please go to installation dir (default: /usr/ymir) and run ./ymir.sh start" | ||
EOT | ||
|
||
chmod +x deb-workplace/DEBIAN/postinst | ||
|
||
dpkg-deb -b deb-workplace ymir-linux-amd64-${YMIR_VERSION}.deb | ||
|
||
rm -rf deb-workplace |
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 @@ | ||
2.1.0 |
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