forked from MannLabs/alphatims
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request MannLabs#106 from MannLabs/develop
Develop
- Loading branch information
Showing
27 changed files
with
18,099 additions
and
285 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 was deleted.
Oops, something went wrong.
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
Binary file not shown.
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
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: AlphaTims | ||
Version: 0.2.0 | ||
Version: 0.2.2 | ||
Architecture: all | ||
Maintainer: Mann Labs <[email protected]> | ||
Description: AlphaTims GUI | ||
|
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
rm -rf dist | ||
rm -rf build | ||
FILE=alphatims.pkg | ||
if test -f "$FILE"; then | ||
rm alphatims.pkg | ||
fi | ||
conda env remove -n alphatimsinstaller | ||
conda create -n alphatimsinstaller python=3.8 -y | ||
# conda create -n alphatimsinstaller python=3.8 | ||
|
@@ -12,8 +16,9 @@ rm -rf dist | |
rm -rf build | ||
python setup.py sdist bdist_wheel | ||
cd misc/one_click_macos | ||
pip install "../../dist/alphatims-0.2.0-py3-none-any.whl[plotting]" | ||
pip install pyinstaller==4.2 | ||
pip install "../../dist/alphatims-0.2.2-py3-none-any.whl[plotting]" | ||
conda list | ||
pyinstaller ../pyinstaller/alphatims.spec -y | ||
conda deactivate | ||
mkdir -p dist/alphatims/Contents/Resources | ||
|
@@ -23,6 +28,23 @@ cp Info.plist dist/alphatims/Contents | |
cp alphatims_terminal dist/alphatims/Contents/MacOS | ||
cp ../../LICENSE.txt Resources/LICENSE.txt | ||
cp ../alpha_logo.png Resources/alpha_logo.png | ||
pkgbuild --root dist/alphatims --identifier org.alphatims.0.2.0 --version 0.2.0 --install-location /Applications/AlphaTims.app --scripts scripts alphatims.pkg | ||
productbuild --distribution distribution.xml --resources Resources --package-path alphatims.pkg dist/alphatims_gui_installer_macos.pkg | ||
# productsign --sign "Developer ID Installer: John Doe" dist/alphatims_gui_installer_macos.pkg dist/alphatims_gui_installer_macos_signed.pkg | ||
|
||
if false; then | ||
# https://scriptingosx.com/2019/09/notarize-a-command-line-tool/ | ||
for f in $(find dist/alphatims -name '*.so' -or -name '*.dylib'); do codesign --sign "Developer ID Application: Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (7QSY5527AQ)" $f; done | ||
codesign --sign "Developer ID Application: Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (7QSY5527AQ)" dist/alphatims/Contents/MacOS/alphatims_gui --force --options=runtime --entitlements entitlements.xml | ||
pkgbuild --root dist/alphatims --identifier de.mpg.biochem.alphatims.app --version 0.2.2 --install-location /Applications/AlphaTims.app --scripts scripts alphatims.pkg --sign "Developer ID Installer: Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (7QSY5527AQ)" | ||
productbuild --distribution distribution.xml --resources Resources --package-path alphatims.pkg dist/alphatims_gui_installer_macos.pkg --sign "Developer ID Installer: Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (7QSY5527AQ)" | ||
requestUUID=$(xcrun altool --notarize-app --primary-bundle-id "de.mpg.biochem.alphatims.app" --username "[email protected]" --password "@keychain:Alphatims-develop" --asc-provider 7QSY5527AQ --file dist/alphatims_gui_installer_macos.pkg 2>&1 | awk '/RequestUUID/ { print $NF; }') | ||
request_status="in progress" | ||
while [[ "$request_status" == "in progress" ]]; do | ||
echo "$request_status" | ||
sleep 10 | ||
request_status=$(xcrun altool --notarization-info "$requestUUID" --username "[email protected]" --password "@keychain:Alphatims-develop" | awk -F ': ' '/Status:/ { print $2; }' ) | ||
done | ||
xcrun altool --notarization-info "$requestUUID" --username "[email protected]" --password "@keychain:Alphatims-develop" | ||
xcrun stapler staple dist/alphatims_gui_installer_macos.pkg | ||
else | ||
pkgbuild --root dist/alphatims --identifier de.mpg.biochem.alphatims.app --version 0.2.2 --install-location /Applications/AlphaTims.app --scripts scripts alphatims.pkg | ||
productbuild --distribution distribution.xml --resources Resources --package-path alphatims.pkg dist/alphatims_gui_installer_macos.pkg | ||
fi |
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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.security.cs.allow-jit</key> | ||
<true/> | ||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key> | ||
<true/> | ||
<key>com.apple.security.network.client</key> | ||
<true/> | ||
<key>com.apple.security.network.server</key> | ||
<true/> | ||
</dict> | ||
</plist> |
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.