mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 05:53:12 -07:00
Generate chiaki.rb Cask on Travis (#37)
This commit is contained in:
parent
6a829d5dfd
commit
326ffdaa8f
4 changed files with 31 additions and 0 deletions
11
scripts/configure-cask.cmake
Normal file
11
scripts/configure-cask.cmake
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
if(NOT CHIAKI_VERSION OR NOT CHIAKI_DMG OR NOT CHIAKI_DMG_FILENAME OR NOT CHIAKI_CASK_OUT)
|
||||
message(FATAL_ERROR "CHIAKI_VERSION, CHIAKI_DMG, CHIAKI_DMG_FILENAME and CHIAKI_CASK_OUT must be set.")
|
||||
endif()
|
||||
|
||||
if(CHIAKI_VERSION MATCHES "^v([0-9].*)$")
|
||||
set(CHIAKI_VERSION "${CMAKE_MATCH_1}")
|
||||
endif()
|
||||
|
||||
file(SHA256 "${CHIAKI_DMG}" CHIAKI_DMG_SHA256)
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/chiaki.rb.in" "${CHIAKI_CASK_OUT}")
|
Loading…
Add table
Add a link
Reference in a new issue