mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-19 20:59:07 +08:00
update version, replaced UNKNOWN by the totay date, better macOsX handling...
#129
This commit is contained in:
parent
7c6fac781a
commit
9ebc926564
12
.github/workflows/ccpp_mac.yml
vendored
12
.github/workflows/ccpp_mac.yml
vendored
@ -25,6 +25,8 @@ jobs:
|
|||||||
- name: cmake
|
- name: cmake
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" -DSLIC3R_STATIC=1
|
run: cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" -DSLIC3R_STATIC=1
|
||||||
|
- name: change date in version
|
||||||
|
run: sed "s/UNKNOWN/$(date '+%F')/" version.inc
|
||||||
- name: make slic3r
|
- name: make slic3r
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: make slic3r
|
run: make slic3r
|
||||||
@ -39,10 +41,16 @@ jobs:
|
|||||||
mkdir Slic3r++/Slic3r++.app/Contents/MacOS
|
mkdir Slic3r++/Slic3r++.app/Contents/MacOS
|
||||||
- name: copy resources
|
- name: copy resources
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: cp -Rf ../resources Slic3r++/Slic3r++.app/Contents/resources
|
run: |
|
||||||
|
cp -Rf ../resources Slic3r++/Slic3r++.app/Contents/resources
|
||||||
|
cp Slic3r++/Slic3r++.app/Contents/resources/icons/slic3r.icns Slic3r++/Slic3r++.app/Contents/resources/slic3r.icns
|
||||||
|
cp src/Info.plist Slic3r++/Slic3r++.app/Contents/Info.plist
|
||||||
|
echo -n -e '\xff\xfeAPPL\x3f\x00\x3f\x00\x3f\x00\x3f\x00\x0a\x00' > PkgInfo
|
||||||
- name: copy bin
|
- name: copy bin
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: cp -f src/slic3r++ Slic3r++/Slic3r++.app/Contents/MacOS/slic3r++
|
run: |
|
||||||
|
cp -f src/slic3r++ Slic3r++/Slic3r++.app/Contents/MacOS/slic3r++
|
||||||
|
chmod 777 Slic3r++/Slic3r++.app/Contents/MacOS/slic3r++
|
||||||
# - name: signing resources (creating CodeResources inside _CodeSignature)
|
# - name: signing resources (creating CodeResources inside _CodeSignature)
|
||||||
# working-directory: .
|
# working-directory: .
|
||||||
# run: codesign -s <identity> resources
|
# run: codesign -s <identity> resources
|
||||||
|
2
.github/workflows/ccpp_ubuntu.yml
vendored
2
.github/workflows/ccpp_ubuntu.yml
vendored
@ -27,6 +27,8 @@ jobs:
|
|||||||
- name: cmake
|
- name: cmake
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: cmake .. -DCMAKE_PREFIX_PATH="/home/runner/work/Slic3r/Slic3r/deps/build/destdir/usr/local" -DSLIC3R_STATIC=1
|
run: cmake .. -DCMAKE_PREFIX_PATH="/home/runner/work/Slic3r/Slic3r/deps/build/destdir/usr/local" -DSLIC3R_STATIC=1
|
||||||
|
- name: change date in version
|
||||||
|
run: sed "s/UNKNOWN/$(date '+%F')/" version.inc
|
||||||
- name: make slic3r
|
- name: make slic3r
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: make slic3r
|
run: make slic3r
|
||||||
|
10
.github/workflows/ccpp_win.yml
vendored
10
.github/workflows/ccpp_win.yml
vendored
@ -23,10 +23,12 @@ jobs:
|
|||||||
run: mkdir build
|
run: mkdir build
|
||||||
- name: cmake
|
- name: cmake
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: |
|
run: cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\Slic3r\Slic3r\deps\build\destdir\usr\local"
|
||||||
cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\Slic3r\Slic3r\deps\build\destdir\usr\local"
|
- name: change date in version
|
||||||
#msbuild /m /P:Configuration=Release ALL_BUILD.vcxproj
|
shell: powershell
|
||||||
msbuild /m /P:Configuration=Release INSTALL.vcxproj
|
run: (Get-Content version.inc) | Foreach-Object {$_ -replace "UNKNOWN", [datetime]::Today.ToString("yyyy-MM-dd")} | Set-Content version.inc
|
||||||
|
- name: make
|
||||||
|
run: msbuild /m /P:Configuration=Release INSTALL.vcxproj
|
||||||
- name: create directory and copy into it
|
- name: create directory and copy into it
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: ls
|
run: ls
|
||||||
|
BIN
resources/icons/Slic3r.icns
Normal file
BIN
resources/icons/Slic3r.icns
Normal file
Binary file not shown.
@ -12,7 +12,7 @@ PRODUCTVERSION @SLIC3R_RC_VERSION@
|
|||||||
VALUE "ProductName", "@SLIC3R_APP_NAME@"
|
VALUE "ProductName", "@SLIC3R_APP_NAME@"
|
||||||
VALUE "ProductVersion", "@SLIC3R_BUILD_ID@"
|
VALUE "ProductVersion", "@SLIC3R_BUILD_ID@"
|
||||||
VALUE "InternalName", "@SLIC3R_APP_NAME@"
|
VALUE "InternalName", "@SLIC3R_APP_NAME@"
|
||||||
VALUE "LegalCopyright", "Copyright \251 2011-2019 Alessandro Ranelucci, \251 2016-2019 Prusa Research, \251 2018-2019 Supermerill"
|
VALUE "LegalCopyright", "Copyright \251 2011-2019 Alessandro Ranelucci, \251 2016-2019 Prusa Research, \251 2018-2019 Remi Durand"
|
||||||
VALUE "OriginalFilename", "slic3r.exe"
|
VALUE "OriginalFilename", "slic3r.exe"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>@SLIC3R_APP_KEY@</string>
|
<string>@SLIC3R_APP_KEY@</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>@SLIC3R_APP_NAME@ Copyright (C) 2011-2019 Alessandro Ranellucci, (C) 2016-2019 Prusa Reseach</string>
|
<string>@SLIC3R_APP_NAME@ Copyright (C) 2011-2019 Alessandro Ranellucci, (C) 2016-2019 Prusa Reseach, (C) 2018-2019 Remi Durand</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>PrusaSlicer.icns</string>
|
<string>Slic3r.icns</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>@SLIC3R_APP_KEY@</string>
|
<string>@SLIC3R_APP_KEY@</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
<string>OBJ</string>
|
<string>OBJ</string>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleTypeIconFile</key>
|
<key>CFBundleTypeIconFile</key>
|
||||||
<string>PrusaSlicer.icns</string>
|
<string>Slic3r.icns</string>
|
||||||
<key>CFBundleTypeName</key>
|
<key>CFBundleTypeName</key>
|
||||||
<string>STL</string>
|
<string>STL</string>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<string>AMF</string>
|
<string>AMF</string>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleTypeIconFile</key>
|
<key>CFBundleTypeIconFile</key>
|
||||||
<string>PrusaSlicer.icns</string>
|
<string>Slic3r.icns</string>
|
||||||
<key>CFBundleTypeName</key>
|
<key>CFBundleTypeName</key>
|
||||||
<string>AMF</string>
|
<string>AMF</string>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
@ -82,7 +82,7 @@
|
|||||||
<string>3MF</string>
|
<string>3MF</string>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleTypeIconFile</key>
|
<key>CFBundleTypeIconFile</key>
|
||||||
<string>PrusaSlicer.icns</string>
|
<string>Slic3r.icns</string>
|
||||||
<key>CFBundleTypeName</key>
|
<key>CFBundleTypeName</key>
|
||||||
<string>3MF</string>
|
<string>3MF</string>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
@ -111,7 +111,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.9</string>
|
<string>10.14</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
||||||
<string>NSApplication</string>
|
<string>NSApplication</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
set(SLIC3R_APP_NAME "Slic3r++")
|
set(SLIC3R_APP_NAME "Slic3r++")
|
||||||
set(SLIC3R_APP_KEY "Slic3r++")
|
set(SLIC3R_APP_KEY "Slic3r++")
|
||||||
set(SLIC3R_VERSION "2.2.46")
|
set(SLIC3R_VERSION "2.2.47")
|
||||||
set(SLIC3R_BUILD_ID "slic3r++_${SLIC3R_VERSION}+UNKNOWN")
|
set(SLIC3R_BUILD_ID "slic3r++_${SLIC3R_VERSION}+UNKNOWN")
|
||||||
set(SLIC3R_RC_VERSION "2,2,46,0")
|
set(SLIC3R_RC_VERSION "2,2,47,0")
|
||||||
set(SLIC3R_RC_VERSION_DOTS "2.2.46.0")
|
set(SLIC3R_RC_VERSION_DOTS "2.2.47.0")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user