mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-28 05:42:02 +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
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: 'Nigthly'
|
ref: 'Nigthly'
|
||||||
|
- name: update submodule profiles
|
||||||
|
working-directory: ./resources/profiles
|
||||||
|
run: git submodule update
|
||||||
- name: change date in version
|
- name: change date in version
|
||||||
run: |
|
run: |
|
||||||
sed "s/+UNKNOWN/_$(date '+%F')/" version.inc > version.date.inc
|
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}
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||||
COMMENT "Generate localization po files (binary) from mo files (texts)"
|
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})
|
foreach(po_file ${L10N_PO_FILES})
|
||||||
GET_FILENAME_COMPONENT(po_dir "${po_file}" DIRECTORY)
|
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(
|
add_custom_command(
|
||||||
TARGET gettext_po_to_mo PRE_BUILD
|
TARGET gettext_po_to_mo PRE_BUILD
|
||||||
COMMAND msgfmt ARGS -o ${mo_file} ${po_file}
|
COMMAND msgfmt ARGS -o ${mo_file} ${po_file}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>@SLIC3R_APP_NAME@ Copyright (C) 2011-2020 Alessandro Ranellucci, (C) 2016-2020 Prusa Reseach, (C) 2018-2020 Remi Durand</string>
|
<string>@SLIC3R_APP_NAME@ Copyright (C) 2011-2020 Alessandro Ranellucci, (C) 2016-2020 Prusa Reseach, (C) 2018-2020 Remi Durand</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>@SLIC3R_BUILD_ID@.icns</string>
|
<string>@SLIC3R_APP_KEY@.icns</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>@SLIC3R_APP_KEY@</string>
|
<string>@SLIC3R_APP_KEY@</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user