Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prod_build_cellframe-node
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
prod_build_cellframe-node
Commits
060ad60e
Commit
060ad60e
authored
3 months ago
by
Dmitry Puzyrkov
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
49d2dc59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packaging/osx.sh
+82
-1
82 additions, 1 deletion
packaging/osx.sh
with
82 additions
and
1 deletion
packaging/osx.sh
+
82
−
1
View file @
060ad60e
...
...
@@ -52,7 +52,7 @@ then
PKG_SIGN_POSSIBLE
=
0
fi
PACK
()
PACK
_LINUX
()
{
DIST_DIR
=
$1
BUILD_DIR
=
$2
...
...
@@ -164,3 +164,84 @@ PACK()
}
PACK_OSX
()
{
DIST_DIR
=
$1
BUILD_DIR
=
$2
OUT_DIR
=
$3
BRAND
=
CellframeNode
#USED FOR PREPARATION OF UNIFIED BUNDLE
#all binaries and some structure files are threre
PACKAGE_DIR
=
${
DIST_DIR
}
/osxpackaging
#USED FOR PROCESSING OF PREPARED BUNDLE: BOM CREATION, ETC
OSX_PKG_DIR
=
${
DIST_DIR
}
/pkg
BRAND_OSX_BUNDLE_DIR
=
${
DIST_DIR
}
/Applications/CellframeNode.app
#prepare correct packaging structure
mkdir
-p
${
PACKAGE_DIR
}
mkdir
-p
${
OSX_PKG_DIR
}
echo
"Creating unified package structure in [
$BRAND_OSX_BUNDLE_DIR
]"
#copy base application bundle
#path to it in BRAND_OSX_BUNDLE_DIR
#cp -r ${DIST_DIR}/Applications/CellframeNode.app ${PACKAGE_DIR}/CellframeNode.app
#copy pkginstall
cp
${
HERE
}
/../../os/macos/PKGINSTALL/
*
${
PACKAGE_DIR
}
echo
"Do packaging magic in [
$PACKAGE_DIR
]"
#get version info
source
"
${
HERE
}
/../../version.mk"
PACKAGE_NAME
=
"cellframe-node-
${
VERSION_MAJOR
}
.
${
VERSION_MINOR
}
-
${
VERSION_PATCH
}
-amd64.pkg"
PACKAGE_NAME_SIGNED
=
"cellframe-node-
${
VERSION_MAJOR
}
.
${
VERSION_MINOR
}
-
${
VERSION_PATCH
}
-amd64-signed.pkg"
echo
"Building package [
$PACKAGE_NAME
]"
#prepare
PAYLOAD_BUILD
=
${
PACKAGE_DIR
}
/payload_build
SCRIPTS_BUILD
=
${
PACKAGE_DIR
}
/scripts_build
mkdir
-p
${
PAYLOAD_BUILD
}
mkdir
-p
${
SCRIPTS_BUILD
}
cp
-r
${
BRAND_OSX_BUNDLE_DIR
}
${
PAYLOAD_BUILD
}
cp
${
PACKAGE_DIR
}
/preinstall
${
SCRIPTS_BUILD
}
cp
${
PACKAGE_DIR
}
/postinstall
${
SCRIPTS_BUILD
}
pkgbuild
--root
${
PAYLOAD_BUILD
}
\
--component-plist
${
PAYLOAD_BUILD
}
/../CellframeNode.plist
\
--identifier
"com.demlabs.CellframeNode"
\
--version
"
${
VERSION_MAJOR
}
.
${
VERSION_MINOR
}
.
${
VERSION_PATCH
}
"
\
--install-location
"/Applications"
\
--scripts
${
SCRIPTS_BUILD
}
\
./
${
PACKAGE_NAME
}
}
NAME_OUT
=
"
$(
uname
-s
)
"
case
"
${
NAME_OUT
}
"
in
Linux
*
)
MACHINE
=
Linux
;;
Darwin
*
)
MACHINE
=
Mac
;;
CYGWIN
*
)
MACHINE
=
Cygwin
;;
MINGW
*
)
MACHINE
=
MinGw
;;
MSYS_NT
*
)
MACHINE
=
Git
;;
*
)
MACHINE
=
"UNKNOWN:
${
NAME_OUT
}
"
esac
PACK
()
{
if
[
"
$MACHINE
"
!=
"Mac"
]
then
PACK_LINUX
$@
else
PACK_OSX
$@
fi
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment