mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-25 03:34:27 +08:00
fix macos build & po to mo naming
This commit is contained in:
parent
006f61a5d8
commit
e9c71f1570
3
.github/workflows/ccpp_mac.yml
vendored
3
.github/workflows/ccpp_mac.yml
vendored
@ -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
|
||||
|
@ -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}
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user