Expand DICOM decoding and Enhanced CT support
This commit is contained in:
1 parent
c7f9af8025
commit
6b95fbb1fc
9 files changed
+508
-96
No files matched your search
+14
-2
@@ -10,6 +10,8 @@ build_for_arch() {
|
||||
swift build -c release --arch "$arch" --scratch-path "$scratch_path" --show-bin-path
|
||||
}
|
||||
|
||||
decoder="$(./scripts/build-dicom-decoder.sh)"
|
||||
|
||||
arm64_bin="$(build_for_arch arm64)"
|
||||
x86_64_bin="$(build_for_arch x86_64)"
|
||||
|
||||
@@ -19,12 +21,22 @@ trap 'rm -rf "$stage"' EXIT
|
||||
app="$stage/EzDent.app"
|
||||
executable="$app/Contents/MacOS/EzDent"
|
||||
|
||||
mkdir -p "$app/Contents/MacOS"
|
||||
mkdir -p "$app/Contents/MacOS" "$app/Contents/Helpers"
|
||||
cp "$decoder" "$app/Contents/Helpers/gdcmconv"
|
||||
licenses="$app/Contents/Resources/Licenses"
|
||||
mkdir -p "$licenses"
|
||||
gdcm_source=".build/dicom-tools/gdcm"
|
||||
cp "$gdcm_source/Copyright.txt" "$licenses/GDCM.txt"
|
||||
cp "$gdcm_source/Utilities/gdcmjpeg/COPYRIGHT.dcmtk" "$licenses/DCMTK.txt"
|
||||
cp "$gdcm_source/Utilities/gdcmcharls/License.txt" "$licenses/CharLS.txt"
|
||||
cp "$gdcm_source/Utilities/gdcmopenjpeg/LICENSE" "$licenses/OpenJPEG.txt"
|
||||
cp "$gdcm_source/Utilities/gdcmzlib/LICENSE" "$licenses/zlib.txt"
|
||||
codesign --force --sign - "$app/Contents/Helpers/gdcmconv"
|
||||
cp Packaging/Info.plist "$app/Contents/Info.plist"
|
||||
xcrun lipo -create "$arm64_bin/EzDent" "$x86_64_bin/EzDent" -output "$executable"
|
||||
xcrun lipo "$executable" -verify_arch arm64 x86_64
|
||||
codesign --force --sign - "$app"
|
||||
codesign --verify --strict "$app"
|
||||
codesign --verify --deep --strict "$app"
|
||||
|
||||
rm -rf dist/EzDent.app
|
||||
mv "$app" dist/EzDent.app
|
||||
|
||||
Reference in new issue
Block a user