forked from vesoft-inc/nebula
-
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.
package nebula graph according to environment variables (vesoft-inc#2603
) * Support yueshu package in workflow * Fix bug * Add release job for yueshu package * fix company name * restore preinst * restore * Update preinst Modify the Chinese part of the variable name * Update CMakeLists.txt Add variable name PROD_NAME_CN * Update preinst fix format --------- Co-authored-by: George <[email protected]> Co-authored-by: Sophie <[email protected]>
- Loading branch information
1 parent
5580140
commit d7031e5
Showing
6 changed files
with
118 additions
and
101 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
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 @@ | ||
# Copyright (c) 2023 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
|
||
macro(env_or_default name default_val) | ||
if ("$ENV{${name}}" STREQUAL "") | ||
set(${name} ${default_val}) | ||
else() | ||
set(${name} $ENV{${name}}) | ||
endif() | ||
message(STATUS "${name}: ${${name}}") | ||
endmacro() | ||
|
||
env_or_default(COMPANY "vesoft") | ||
env_or_default(COMPANY_CN "杭州欧若数网科技有限公司") | ||
env_or_default(PROD_NAME "NebulaGraph") | ||
env_or_default(PROD_NAME_CN "NebulaGraph") | ||
env_or_default(PKG_NAME "nebula-graph-ent") | ||
env_or_default(RELEASE_URL "https://github.com/vesoft-inc/nebula-ent/releases") | ||
env_or_default(DOC_URL "https://docs.nebula-graph.io") | ||
env_or_default(PROD_URL "https://nebula-graph.io") | ||
|
||
configure_file( | ||
${CMAKE_CURRENT_SOURCE_DIR}/preinst | ||
${CMAKE_CURRENT_BINARY_DIR}/preinst | ||
) | ||
|
||
include(CPackage) | ||
|
||
package( | ||
${ENABLE_PACK_ONE} | ||
${PKG_NAME} | ||
${RELEASE_URL} | ||
${CMAKE_SOURCE_DIR}/package | ||
) |
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
Oops, something went wrong.