fix macos build & po to mo naming

This commit is contained in:
remi durand 2021-05-21 19:50:43 +02:00
parent 006f61a5d8
commit e9c71f1570
3 changed files with 7 additions and 3 deletions

View File

@ -14,6 +14,9 @@ jobs:
- uses: actions/checkout@v2
with:
ref: 'Nigthly'
- name: update submodule profiles
working-directory: ./resources/profiles
run: git submodule update
- name: change date in version
run: |
sed "s/+UNKNOWN/_$(date '+%F')/" version.inc > version.date.inc

View File

@ -438,10 +438,11 @@ add_custom_target(gettext_po_to_mo
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Generate localization po files (binary) from mo files (texts)"
)
file(GLOB L10N_PO_FILES "${L10N_DIR}/*/Slic3r*.po")
file(GLOB L10N_PO_FILES "${L10N_DIR}/*/*.po")
foreach(po_file ${L10N_PO_FILES})
GET_FILENAME_COMPONENT(po_dir "${po_file}" DIRECTORY)
SET(mo_file "${po_dir}/Slic3r.mo")
SET(mo_file "${po_dir}/${SLIC3R_APP_KEY}.mo")
message(STATUS "po_dir mo_file imgui : '${po_file}' and mo file is '${mo_file}'")
add_custom_command(
TARGET gettext_po_to_mo PRE_BUILD
COMMAND msgfmt ARGS -o ${mo_file} ${po_file}

View File

@ -7,7 +7,7 @@
<key>CFBundleGetInfoString</key>
<string>@SLIC3R_APP_NAME@ Copyright (C) 2011-2020 Alessandro Ranellucci, (C) 2016-2020 Prusa Reseach, (C) 2018-2020 Remi Durand</string>
<key>CFBundleIconFile</key>
<string>@SLIC3R_BUILD_ID@.icns</string>
<string>@SLIC3R_APP_KEY@.icns</string>
<key>CFBundleName</key>
<string>@SLIC3R_APP_KEY@</string>
<key>CFBundleShortVersionString</key>