mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-29 06:25:32 -04:00
Remove additional package steps (#129)
This commit is contained in:
parent
bcd7248bb4
commit
372f29fc4c
4 changed files with 0 additions and 71 deletions
8
.github/workflows/draft_new_release.yml
vendored
8
.github/workflows/draft_new_release.yml
vendored
|
@ -68,19 +68,11 @@ jobs:
|
||||||
PACKAGE_FILENAME="Mist.${{ env.APP_VERSION }}.pkg"
|
PACKAGE_FILENAME="Mist.${{ env.APP_VERSION }}.pkg"
|
||||||
echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> "$GITHUB_ENV"
|
echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> "$GITHUB_ENV"
|
||||||
mkdir -p "$PACKAGE_TEMP/Applications"
|
mkdir -p "$PACKAGE_TEMP/Applications"
|
||||||
mkdir -p "$PACKAGE_TEMP/Library/LaunchDaemons"
|
|
||||||
mkdir -p "$PACKAGE_TEMP/Library/PrivilegedHelperTools"
|
|
||||||
ditto "Export/Mist.app" "$PACKAGE_TEMP/Applications/Mist.app"
|
ditto "Export/Mist.app" "$PACKAGE_TEMP/Applications/Mist.app"
|
||||||
cp "com.ninxsoft.mist.helper.plist" "$PACKAGE_TEMP/Library/LaunchDaemons/com.ninxsoft.mist.helper.plist"
|
|
||||||
cp "Export/Mist.app/Contents/Library/LaunchServices/com.ninxsoft.mist.helper" "$PACKAGE_TEMP/Library/PrivilegedHelperTools/com.ninxsoft.mist.helper"
|
|
||||||
chmod 644 "$PACKAGE_TEMP/Library/LaunchDaemons/com.ninxsoft.mist.helper.plist"
|
|
||||||
chmod 544 "$PACKAGE_TEMP/Library/PrivilegedHelperTools/com.ninxsoft.mist.helper"
|
|
||||||
rm "Scripts/uninstall.sh"
|
|
||||||
pkgbuild --root "$PACKAGE_TEMP" \
|
pkgbuild --root "$PACKAGE_TEMP" \
|
||||||
--identifier "$PACKAGE_IDENTIFIER" \
|
--identifier "$PACKAGE_IDENTIFIER" \
|
||||||
--version "${{ env.APP_VERSION }}" \
|
--version "${{ env.APP_VERSION }}" \
|
||||||
--min-os-version "12.0" \
|
--min-os-version "12.0" \
|
||||||
--scripts "Scripts" \
|
|
||||||
--sign "$APPLE_DEVELOPER_ID_INSTALLER_SIGNING_IDENTITY" \
|
--sign "$APPLE_DEVELOPER_ID_INSTALLER_SIGNING_IDENTITY" \
|
||||||
"$PACKAGE_FILENAME"
|
"$PACKAGE_FILENAME"
|
||||||
- name: Notarize Package
|
- name: Notarize Package
|
||||||
|
|
|
@ -21,29 +21,10 @@ Process:
|
||||||
pkgroot: "%RECIPE_CACHE_DIR%/payload"
|
pkgroot: "%RECIPE_CACHE_DIR%/payload"
|
||||||
pkgdirs:
|
pkgdirs:
|
||||||
"Applications": "0755"
|
"Applications": "0755"
|
||||||
"Library": "0755"
|
|
||||||
"Library/LaunchDaemons": "0755"
|
|
||||||
"Library/PrivilegedHelperTools": "0755"
|
|
||||||
- Processor: Copier
|
- Processor: Copier
|
||||||
Arguments:
|
Arguments:
|
||||||
source_path: "/Applications/Mist.app"
|
source_path: "/Applications/Mist.app"
|
||||||
destination_path: "%RECIPE_CACHE_DIR%/payload/Applications/Mist.app"
|
destination_path: "%RECIPE_CACHE_DIR%/payload/Applications/Mist.app"
|
||||||
- Processor: Copier
|
|
||||||
Arguments:
|
|
||||||
source_path: "/Library/LaunchDaemons/com.ninxsoft.mist.helper.plist"
|
|
||||||
destination_path: "%RECIPE_CACHE_DIR%/payload/Library/LaunchDaemons/com.ninxsoft.mist.helper.plist"
|
|
||||||
- Processor: Copier
|
|
||||||
Arguments:
|
|
||||||
source_path: "/Applications/Mist.app/Contents/Library/LaunchServices/com.ninxsoft.mist.helper"
|
|
||||||
destination_path: "%RECIPE_CACHE_DIR%/payload/Library/PrivilegedHelperTools/com.ninxsoft.mist.helper"
|
|
||||||
- Processor: Copier
|
|
||||||
Arguments:
|
|
||||||
source_path: "%MIST_RECIPE_DIR%/Scripts"
|
|
||||||
destination_path: "%RECIPE_CACHE_DIR%/scripts"
|
|
||||||
- Processor: PathDeleter
|
|
||||||
Arguments:
|
|
||||||
path_list:
|
|
||||||
- "%RECIPE_CACHE_DIR%/scripts/uninstall.sh"
|
|
||||||
- Processor: PkgCreator
|
- Processor: PkgCreator
|
||||||
Arguments:
|
Arguments:
|
||||||
pkg_request:
|
pkg_request:
|
||||||
|
@ -62,27 +43,6 @@ Process:
|
||||||
user: root
|
user: root
|
||||||
group: wheel
|
group: wheel
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
- path: /Library
|
|
||||||
user: root
|
|
||||||
group: wheel
|
|
||||||
mode: "0755"
|
|
||||||
- path: /Library/LaunchDaemons
|
|
||||||
user: root
|
|
||||||
group: wheel
|
|
||||||
mode: "0755"
|
|
||||||
- path: /Library/LaunchDaemons/com.ninxsoft.mist.helper.plist
|
|
||||||
user: root
|
|
||||||
group: wheel
|
|
||||||
mode: "0644"
|
|
||||||
- path: /Library/PrivilegedHelperTools
|
|
||||||
user: root
|
|
||||||
group: wheel
|
|
||||||
mode: "0755"
|
|
||||||
- path: /Library/PrivilegedHelperTools/com.ninxsoft.mist.helper
|
|
||||||
user: root
|
|
||||||
group: wheel
|
|
||||||
mode: "0544"
|
|
||||||
scripts: "%RECIPE_CACHE_DIR%/scripts"
|
|
||||||
- Processor: com.github.rtrouton.SharedProcessors/PkgSigner
|
- Processor: com.github.rtrouton.SharedProcessors/PkgSigner
|
||||||
Arguments:
|
Arguments:
|
||||||
pkg_path: "%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg"
|
pkg_path: "%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg"
|
||||||
|
@ -94,5 +54,4 @@ Process:
|
||||||
- Processor: PathDeleter
|
- Processor: PathDeleter
|
||||||
Arguments:
|
Arguments:
|
||||||
path_list:
|
path_list:
|
||||||
- "%RECIPE_CACHE_DIR%/scripts"
|
|
||||||
- "%RECIPE_CACHE_DIR%/%NAME%-%version%-unsigned.pkg"
|
- "%RECIPE_CACHE_DIR%/%NAME%-%version%-unsigned.pkg"
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
identifier="com.ninxsoft.mist.helper"
|
|
||||||
|
|
||||||
if ! launchctl print "system/$identifier" &> /dev/null ; then
|
|
||||||
launchctl bootstrap system "/Library/LaunchDaemons/$identifier.plist"
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
|
|
@ -1,11 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
identifier="com.ninxsoft.mist.helper"
|
|
||||||
|
|
||||||
if launchctl print "system/$identifier" &> /dev/null ; then
|
|
||||||
launchctl bootout "system/$identifier"
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
|
Loading…
Add table
Add a link
Reference in a new issue