Skip to content

Commit 4933cc7

Browse files
committed
changed name of project
1 parent 9fe60d3 commit 4933cc7

File tree

1 file changed

+11
-35
lines changed

1 file changed

+11
-35
lines changed

quickpkg

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@ import string
55
import os
66

77

8-
import jss
98

10-
casperimport_version = '0.0'
11-
supported_extensions = ['pkg']
9+
quickpkg_version = '0.0'
10+
supported_extensions = ['dmg', 'app']
1211

13-
# casperimport
12+
# quickpkg
1413

15-
# modeled after munkiimport but for casper
14+
# modeled after munkiimport but to build a pkg
1615

1716
if __name__ == "__main__":
1817
# for convenience link to argparse tutorial:
1918
# https://docs.python.org/2/howto/argparse.html#id1
20-
parser = argparse.ArgumentParser(description="Imports an installer item into Casper.",
21-
epilog="""Installer item can be a pkg, mpkg, dmg, or app.
19+
parser = argparse.ArgumentParser(description="Attempts to build a pkg from the input.",
20+
epilog="""Installer item can be a dmg, or app.
2221
2322
Example:
24-
casperimport /path/to/installer_item""", formatter_class=argparse.RawTextHelpFormatter)
23+
quickpkg /path/to/installer_item""", formatter_class=argparse.RawTextHelpFormatter)
2524

26-
parser.add_argument('--version', help='prints the version', action='version', version=casperimport_version)
25+
parser.add_argument('--version', help='prints the version', action='version', version=quickpkg_version)
2726

2827
# takes a path as input
2928
parser.add_argument('item_path', help="path to the installer item")
@@ -43,32 +42,9 @@ if __name__ == "__main__":
4342
exit(1)
4443

4544
# if item is a dmg, mount it and find useful contents
46-
47-
# extract version and other metadata
48-
49-
# if item is a bundle try to find Info.plist
50-
51-
# if item is a flat package, expand into tmp and get version
52-
53-
# try to extract version from file name
54-
55-
# if path is a pkg
56-
57-
# extract version
58-
59-
# if path is an .app
60-
61-
# extract version
6245

63-
# pkgbuild
64-
65-
# upload to jss
66-
67-
# if item is a directory, zip it
46+
# extract version and other metadata
6847

69-
# see if item already exists
48+
# run pkgutil to build result
7049

71-
# copy pkg to caspershare/Packages
72-
73-
# create Package object with JSS API
74-
50+

0 commit comments

Comments
 (0)