-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* introduce macos framework * distribute * fix * fix * fix * fedora fix
- Loading branch information
1 parent
690d096
commit 16beef1
Showing
20 changed files
with
177 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ thirdparty_build/* | |
distr/* | ||
*.log | ||
/docker/logs/ | ||
macos/Resources/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<installer-gui-script minSpecVersion="1"> | ||
<title>MeshLib</title> | ||
<background alignment="bottomleft" file="./background.png" mime-type="image/png" scaling="proportional"/> | ||
<background-darkAqua alignment="bottomleft" file="./background.png" mime-type="image/png" scaling="proportional"/> | ||
<license file="LICENSE" mime-type="text/richtext"/> | ||
<conclusion file="Conclusion.rtf" mime-type="text/richtext"/> | ||
<pkg-ref id="com.MeshInspector.MeshLib"/> | ||
<options customize="never" require-scripts="false" hostArchitectures="x86_64,arm64"/> | ||
<choices-outline> | ||
<line choice="default"> | ||
<line choice="com.MeshInspector.MeshLib"/> | ||
</line> | ||
</choices-outline> | ||
<choice id="default"/> | ||
<choice id="com.MeshInspector.MeshLib" visible="false"> | ||
<pkg-ref id="com.MeshInspector.MeshLib"/> | ||
</choice> | ||
<pkg-ref id="com.MeshInspector.MeshLib" version="0" onConclusion="none">MeshLib.pkg</pkg-ref> | ||
</installer-gui-script> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf200 | ||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 LucidaGrande-Bold;\f2\fnil\fcharset0 LucidaGrande; | ||
\f3\fnil\fcharset0 Monaco;} | ||
{\colortbl;\red255\green255\blue255;} | ||
{\*\expandedcolortbl;;} | ||
\margl1440\margr1440\vieww10540\viewh8400\viewkind0 | ||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 | ||
|
||
\f0\fs28 \cf0 Congratulations! | ||
\fs24 | ||
\f1\b\fs28 MeshLib | ||
\f2\b0 was successfully installed. | ||
\fs24 \ | ||
\ | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
if [ -d "./Library" ]; | ||
then rm -rf "./Library"; | ||
fi | ||
|
||
cd ./build/Release | ||
cmake --install . --prefix=../.. | ||
cd - | ||
MR_VERSION=$(ls ./Library/Frameworks/MeshLib.framework/Versions/) | ||
echo "version: ${MR_VERSION}" | ||
MR_PREFIX="./Library/Frameworks/MeshLib.framework/Versions/${MR_VERSION}" | ||
echo "prefix: ${MR_PREFIX}" | ||
|
||
cp -rL ./lib "${MR_PREFIX}/lib/" | ||
cp -rL ./include "${MR_PREFIX}/include/" | ||
|
||
cp ./LICENSE ./macos/Resources | ||
mkdir "${MR_PREFIX}"/requirements/ | ||
cp ./requirements/macos.txt "${MR_PREFIX}"/requirements/ | ||
|
||
ln -s "/Library/Frameworks/MeshLib.framework/Versions/${MR_VERSION}" "./Library/Frameworks/MeshLib.framework/Versions/Current" | ||
ln -s "/Library/Frameworks/MeshLib.framework/Resources" "./Library/Frameworks/MeshLib.framework/Versions/${MR_VERSION}/Resources" | ||
|
||
# be carefull with pkg names! The pkg can fail to build | ||
pkgbuild \ | ||
--root Library \ | ||
--identifier com.MeshInspector.MeshLib \ | ||
--install-location /Library \ | ||
MeshLib.pkg | ||
|
||
|
||
productbuild \ | ||
--distribution ./macos/Distribution.xml \ | ||
--package-path ./MeshLib.pkg \ | ||
--resources ./macos/Resources \ | ||
MeshLib_.pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.