129 Commits
v0.5 ... v0.6

Author SHA1 Message Date
Armin Briegel
e8a9fab851 updated buildInstallerPkg.sh for new version and to use notarytool 2021-07-14 16:17:46 +02:00
Armin Briegel
31f9662022 Merge branch 'dev' of github.com:scriptingosx/Installomator into dev 2021-07-14 14:16:37 +02:00
Armin Briegel
b28901f7a9 updated version and credits 2021-07-14 14:07:21 +02:00
Armin Briegel
5995135b45 Update Labels.txt 2021-07-14 14:05:41 +02:00
Armin Briegel
9dcdcb04a1 Merge pull request #189 from Installomator/Labels
Evernote
2021-07-14 14:04:08 +02:00
Armin Briegel
a86863dfc0 Merge pull request #205 from darklink87/dev
Fixed Figma URL and added several new apps
2021-07-14 13:59:22 +02:00
Armin Briegel
92077590dd Merge pull request #207 from adibue/adibue-aldente-dmg
Changed 'aldente' to 'dmg'
2021-07-14 13:50:50 +02:00
Armin Briegel
1a169733be Merge pull request #206 from adibue/adibue-webex-patch
Added 'webex' to 'webexteams'
2021-07-14 13:50:26 +02:00
Armin Briegel
c9ba1d1d6c Merge pull request #202 from apizz/patch-4
Add Logitech Options
2021-07-14 13:49:20 +02:00
Armin Briegel
52c6b4a86f Merge pull request #201 from Installomator/BLOCKING_PROCESS-quit
quit & quit_kill
2021-07-14 13:48:56 +02:00
Armin Briegel
a78b3cee06 Merge pull request #178 from elenaelago/techsmithcapture
techsmithcapture
2021-07-14 13:47:33 +02:00
Armin Briegel
a67b7de3ac Merge pull request #200 from Installomator/Change-in-finding-installed-apps
Look in /Application and Utilities first
2021-07-14 13:45:35 +02:00
Adam Codega
90b06e0ac3 Merge pull request #204 from adibue/adibue-remove-credits 2021-07-13 22:29:22 -04:00
Adrian Bühler
e5037c2e81 Changed 'aldente' to 'dmg'
AlDente does now ship as DMG.
2021-07-12 11:00:18 +02:00
Adrian Bühler
8e828ce1fa Added 'webex'
Added `webex` as Label to `webexteams`, since those are identical.
Changed the downloadURL of `webexmeetings` to a working one.
2021-07-12 09:13:35 +02:00
Gabe Marchan
ab88181a2f Updated the "credit" comment to match the rest, even though these are going away eventually. 2021-07-11 16:39:04 -05:00
Gabe Marchan
9a7af18e0a Added Wondershare UniConverter. 2021-07-11 16:34:48 -05:00
Gabe Marchan
11711da5ee Added Screenflick. 2021-07-11 16:31:16 -05:00
Gabe Marchan
da174ecf92 Added OBS. 2021-07-11 16:29:28 -05:00
Gabe Marchan
f0d89dbed3 Added Keyboard Maestro. 2021-07-11 16:28:30 -05:00
Gabe Marchan
8633dad7eb Added Grasshopper. 2021-07-11 16:24:55 -05:00
Gabe Marchan
5c58c203b8 Added Default Folder X. 2021-07-11 13:24:39 -05:00
Gabe Marchan
02635f1402 Added Bartender 4. 2021-07-11 13:09:41 -05:00
Gabe Marchan
fc487a1d99 Added Balsamiq Wireframes. 2021-07-11 13:08:11 -05:00
Gabe Marchan
7a98549447 Added aText. 2021-07-11 13:06:45 -05:00
Gabe Marchan
0742ff94ed Added AltTab. 2021-07-11 13:05:37 -05:00
Gabe Marchan
1ca05b4688 Added Audacity. 2021-07-11 13:04:16 -05:00
Gabe Marchan
846e6e2cb2 Updated the Figma URL to use the "full" installer instead of the "stub" installer which needs to be moved out of and back into the Applications folder to function. 2021-07-11 12:57:30 -05:00
Adrian Bühler
b402630f85 Removed my credits
Removed credits as requested in #184
2021-07-09 10:00:37 +02:00
AP Orlebeke
ad1bb8002d Add Logitech Options
Install via the PKG contained with the installer app wrapper
2021-07-07 22:06:46 -04:00
Adam Codega
09e15ea951 Merge pull request #185 from apizz/patch-2
Add XQuartz
2021-07-07 19:13:33 -04:00
Adam Codega
b7a7f512c7 Merge pull request #190 from apizz/patch-3
Add Tableau Desktop
2021-07-07 19:10:49 -04:00
Adam Codega
0744fa8273 Merge pull request #193 from kenchan0130/googlesoftwareupdate
Support Google software update
2021-07-07 19:10:26 -04:00
Adam Codega
9af2e809df Merge pull request #195 from adibue/adibue-element-versionchecking
Added 'appNewVersion' to 'element'
2021-07-07 19:09:19 -04:00
Adam Codega
d9ebefa4be Merge pull request #194 from adibue/adibue-add-aldente 2021-07-06 23:13:44 -04:00
Adam Codega
f533e8ae41 Merge pull request #191 from adibue/adibue-keepassxc-arm64
Got 'keepassxc' ready for Apple Silicon
2021-07-06 10:24:16 -04:00
Adam Codega
ee6a6544a6 Merge pull request #197 from adibue/adibue-mattermost-arm64
Got 'mattermost' ready for Apple Silicon
2021-07-06 10:22:49 -04:00
Adrian Bühler
2910b37e69 Improved 'keepassxc'
Improved `keepassxc` to use `archiveName`. This makes the handling a lot easier.
2021-07-06 14:22:33 +02:00
Adrian Bühler
2028abae59 Improved 'mattermost'
With `archiveName`, there's a way easier solution to make Intel/ARM downloads work with GitHub.
Thanks to @acodega for bringing this to my attention.
2021-07-06 14:04:41 +02:00
Søren Theilgaard
f8d578a6d7 mosyleb icon 2021-07-02 09:23:45 +02:00
Søren Theilgaard
557500e214 CHANGELOG 2021-07-02 09:14:14 +02:00
Søren Theilgaard
52c5ebf4ff 4kvideodownloader
`versionKey` addition.
2021-07-01 15:15:18 +02:00
Søren Theilgaard
18e265d60b Update buildCaseStatement.sh
Works a lot better!
2021-07-01 14:59:11 +02:00
Søren Theilgaard
fd057b9918 4kvideodownloader 2021-07-01 14:48:42 +02:00
Søren Theilgaard
00b0e4dcfd SiriMote 2021-07-01 10:03:56 +02:00
Søren Theilgaard
f5e800a190 favro 2021-06-30 08:59:33 +02:00
Søren Theilgaard
5410739f99 anydesk 2021-06-28 12:52:46 +02:00
Søren Theilgaard
76e1e9d0a3 appNewVersion in theunarchiver 2021-06-27 13:38:16 +02:00
Søren Theilgaard
84c551ee31 Look in /Application and Utilities first
First /Applications, then /Applications/Utilities, and then Spotlight. Maybe we should be prepared that DEPnotify should be installed in Utilities, so `customDestination="/Applications/Utilities/"`could ba a thing.
2021-06-27 13:26:54 +02:00
Søren Theilgaard
7b16678e95 visualstudiocode change
Name of process changed to “Code”.
2021-06-24 11:56:50 +02:00
Adrian Bühler
93d716d954 Got 'mattermost' ready for Apple Silicon
`mattermost` can now distinguish between Intel and Apple Silicon.
2021-06-23 22:53:22 +02:00
Adam Codega
0185827256 Merge pull request #186 from Installomator/acodegaNewMosylePaths
Updated path for Mosyle Business Self-Service app
2021-06-22 12:53:33 -04:00
Adrian Bühler
6e4006c842 Removed credit 2021-06-22 11:31:42 +02:00
Adrian Bühler
9a7d16a735 Merge branch 'dev' into adibue-add-aldente 2021-06-22 11:30:16 +02:00
Adrian Bühler
39437b9549 Sorted 'aldente' to correct position 2021-06-22 11:27:20 +02:00
Adrian Bühler
253d96fa49 Removed credit 2021-06-22 11:25:48 +02:00
Søren Theilgaard
86e63df1a6 sourcetree changed
Maybe not using Sparkle anymore
2021-06-22 10:48:19 +02:00
Tadayuki Onishi
ab00c9c1b8 Add Install Google Software Update to labels 2021-06-22 11:29:13 +09:00
Tadayuki Onishi
d733bbdb0d Add Install Google Software Update 2021-06-22 11:28:58 +09:00
Adrian Bühler
e3fc7fd90a Fixed 'webexteams' URL
The URL for `webexteams` appears to have changed yet another time.
Good thing: The downloaded `pkg` contains the versions for Intel and Apple Silicon at the same time. So no additional URL required :-)
2021-06-21 13:50:14 +02:00
Adrian Bühler
2329cf174c Got 'keepassxc' ready for Apple Silicon
`keepassxc` can now distinguish between Intel and Apple Silicon.

`downloadURL`-style inspired by `handbrake`
2021-06-21 13:13:27 +02:00
AP Orlebeke
63c2ac30bb Add Tableau Desktop 2021-06-18 14:08:32 -04:00
Søren Theilgaard
59ca90759d Evernote 2021-06-18 08:49:17 +02:00
Adam Codega
b530eb1252 Updated path for Mosyle Business Self-Service app
App is now named Self-Service
2021-06-16 17:33:43 -04:00
AP Orlebeke
9b62d3f042 Add XQuartz 2021-06-16 12:58:41 -04:00
Adam Codega
351c7e4c52 Merge pull request #183 from Installomator/acodegaRevertPatchSkip
Removal of variables related to Jamf Patch Management
2021-06-16 08:30:47 -04:00
Adam Codega
78bbdddf79 Removal of variables related to Jamf Patch Management
Variables PatchSkip and others had been added for some potential Jamf Patch Management integration that's been abandoned.
2021-06-15 15:00:51 -04:00
Søren Theilgaard
f2921ec7e7 label githubdesktop
Now for arm and intel versions
2021-06-11 09:21:48 +02:00
Armin Briegel
b0fb909cd1 Merge pull request #181 from scriptingosx/acodega-docs-readmeURL
Update README.md
2021-06-09 18:55:43 +02:00
Adam Codega
61324e7afc Update README.md
Corrected use of Macadmins.org name and incorrect URL.
2021-06-09 10:52:40 -04:00
Søren Theilgaard
31c18118ac quit & quit_kill
Should be great for certain service apps, that we want to kill politely. Before use it should be checked it will not respawn automatically.
2021-05-26 09:41:30 +02:00
Søren Theilgaard
05635a76df Bit of cleaning up
New label clickshare
2021-05-26 09:37:15 +02:00
Elena Ackley
a153051545 Merge branch 'techsmithcapture' of https://github.com/elenaelago/Installomator into techsmithcapture 2021-05-25 15:57:18 -04:00
Elena Ackley
e70df5593a techsmithcapture
TechSmith Capture is a simple, free way to capture basic screenshots and screen recordings and share them with others.
2021-05-25 15:54:58 -04:00
Elena Ackley
6b4a06e635 techsmithcapture
[TechSmith Capture](https://www.techsmith.com/jing-tool.html) is a simple, free way to capture basic screenshots and screen recordings and share them with others.
2021-05-25 15:50:07 -04:00
Adrian Bühler
a5469d57d5 Added 'appNewVersion' to 'element'
Added version checking via GitHub to 'element'
2021-05-25 14:25:59 +02:00
Adrian Bühler
6e0fef436b Added 'AlDente'
Added label for 'aldente'
2021-05-21 15:41:19 +02:00
Adrian Bühler
dddcd22015 Added 'aldente' to Labels.txt 2021-05-21 15:38:39 +02:00
Adrian Bühler
8b32bb2e66 Added AlDente
Added label for 'aldente'
2021-05-21 15:37:13 +02:00
Søren Theilgaard
92db29a5d0 sublimetext 2021-05-21 15:26:20 +02:00
Søren Theilgaard
595add91c5 Merge pull request #164 from midni9ht/webexteams-patch
Updated 'webexteams' for Apple Silicon support
2021-05-20 21:43:04 +02:00
Søren Theilgaard
50498895b2 bluejeans 2021-05-20 21:05:51 +02:00
Søren Theilgaard
ca777320b5 Merge pull request #151 from pro4tlzz/dev
Fix Plantronics Hub & add Hanock & iMazing profile editor
2021-05-20 16:17:07 +02:00
Søren Theilgaard
1359a691f2 Merge branch 'dev' of https://github.com/scriptingosx/Installomator into dev 2021-05-20 16:14:48 +02:00
Søren Theilgaard
ff72445dd4 arq7 2021-05-20 16:14:46 +02:00
Søren Theilgaard
d1b0536a55 Merge pull request #169 from kenchan0130/fix/googlejapaneseinput
Fix to install googlejapaneseinput
2021-05-20 14:58:30 +02:00
Søren Theilgaard
02a1fcb55d Merge pull request #160 from lucascantor/patch-1
Add TextExpander
2021-05-20 14:18:36 +02:00
Søren Theilgaard
9b5b4f611a Merge pull request #174 from scriptingosx/Labels
Labels
2021-05-20 14:09:53 +02:00
Søren Theilgaard
dc7b9316b7 Merge branch 'dev' of https://github.com/scriptingosx/Installomator into dev 2021-05-20 14:04:11 +02:00
Søren Theilgaard
368be676a8 Update Installomator.sh 2021-05-20 14:03:49 +02:00
Søren Theilgaard
5f77a49cfb Merge pull request #173 from elenaelago/drift
Add Drift
2021-05-20 14:00:38 +02:00
Søren Theilgaard
7c013d6de8 Merge pull request #165 from kdrwygvh/dev
New Labels for Apple Fonts
2021-05-20 13:50:10 +02:00
Søren Theilgaard
3f2e4ac508 Merge pull request #167 from scriptingosx/versionKey
versionKey update
2021-05-20 13:49:45 +02:00
Søren Theilgaard
088b4aab2f Incorrect version in camostudio
Thanks for find the URL with release-notes, but the original version returned had too much content. Current version is only 1.3.4, not "1.3.4.4648". But in the little square on the right side above the download link is the version, so I took that.
2021-05-20 13:47:13 +02:00
Søren Theilgaard
6a296f9858 Merge pull request #171 from sphen13/microsoftteams
dont use msupdate for microsoftteams
2021-05-20 12:55:42 +02:00
Søren Theilgaard
55cd237b98 theunarchiver label 2021-05-20 11:46:50 +02:00
John Hutchison
5f264ca868 Added Label for Proxyman 2021-05-19 09:26:54 -04:00
Elena Ackley
dace516318 drift 2021-05-18 17:40:25 -04:00
Søren Theilgaard
88bcc87fd7 Firefox intl explained 2021-05-18 20:57:27 +02:00
Søren Theilgaard
8accb60ab2 firefox intl version fixes 2021-05-18 20:14:29 +02:00
Søren Theilgaard
969d434503 Update Installomator.sh 2021-05-17 16:33:49 +02:00
Søren Theilgaard
b0dd72c9dd firefox intl
2 new labels that should figure out the language used by the user, and then install the Firefox version with that language.
2021-05-17 16:29:20 +02:00
Søren Theilgaard
b17f1550b2 Update Labels.txt 2021-05-17 14:45:03 +02:00
Søren Theilgaard
438214a5ec wwdc label
New label
2021-05-17 14:07:10 +02:00
Søren Theilgaard
631c7c2b91 wireshark missing space
Probably cosmetic, but added a space character in `awk` part of `appNewVersion`.
2021-05-17 13:48:44 +02:00
Søren Theilgaard
cad509accd Force install improvements
If using INSTALL=force, the script will not be using updateTool, but will reinstall instead.
microsoftteams label was still having appNewVersion that does not work, so that has been commented out.
2021-05-17 13:08:48 +02:00
Søren Theilgaard
fbd029d58d supportapp 2021-05-17 10:53:57 +02:00
Stephen Boyle
0d09f1650a dont use msupdate for microsoftteams
msupdate does not fully support teams
2021-05-14 13:12:33 -04:00
Tadayuki Onishi
c2dd55744f add a blockingProcesses value as NONE for googlejapaneseinput 2021-05-13 18:38:32 +09:00
Søren Theilgaard
bd4e848d60 Update Installomator.sh 2021-05-12 13:33:26 +02:00
Søren Theilgaard
2fbe9e810f nextcloud 2021-05-12 13:18:59 +02:00
Søren Theilgaard
33be8b0556 supportapp 2021-05-12 12:08:26 +02:00
Søren Theilgaard
dfe0fbd58f trex 2021-05-12 11:41:05 +02:00
Søren Theilgaard
1b7fb35b53 Merge pull request #168 from scriptingosx/Labels
more labels
2021-05-12 11:24:00 +02:00
Søren Theilgaard
e64fe9fcda appCustomVersion(){}
This can be used in a label now.
2021-05-12 11:17:07 +02:00
Søren Theilgaard
932013b34b Update Installomator.sh 2021-05-11 21:50:39 +02:00
Søren Theilgaard
bef74b6a80 versionKey update
Checked opera and vlc labels
2021-05-11 21:22:15 +02:00
John Hutchison
16828a190f New Label for Proxyman 2021-05-09 08:24:16 -04:00
John Hutchison
d32496e7e1 Updated new App URL for Camo Studio 2021-05-09 08:23:56 -04:00
John Hutchison
34fb0d9271 New Labels for Apple Fonts
New labels for Apple's font collections including New York, San Francisco Mono, San Francisco Pro, and San Francisco Compact
2021-05-07 12:18:08 -04:00
Adrian Bühler
ba6d887098 Updated 'webexteams' for Apple Silicon support
'Webex Teams' changed its application name to just 'Webex'.
Also there is an Apple Silicon version available now.
Should solve #156
2021-05-07 12:10:14 +02:00
Lucas Cantor
0691a8d560 Add TextExpander
This is my first time contributing to Installomator, so my apologies in advance if I'm missing something, or doing something wrong.

I believe this is the best option to find the latest appNewVersion number for TextExpander specifically, but I'm also happy to be proven otherwise.
2021-04-28 09:41:00 -07:00
Søren Theilgaard
ae4589dc06 TeamViewer version 2021-04-22 16:46:06 +02:00
Pro4TLZZ
0db4b87784 Merge branch 'master' of https://github.com/scriptingosx/Installomator into dev
Please enter a commit message to explain why this merge is necessary,
2021-04-20 08:43:07 +01:00
Pro4TLZZ
a9789f54d0 Add Hancock to Label 2021-04-15 10:15:06 +01:00
Pro4TLZZ
519126decd Turn Debug back on 2021-04-15 10:14:17 +01:00
Pro4TLZZ
d16613ec8b Add Hancock and fix formatting for iMazing Profile Editor 2021-04-15 10:13:17 +01:00
Pro4TLZZ
5c3ba1143f Add iMazing Profile Editor 2021-04-15 09:33:36 +01:00
Pro4TLZZ
1acc865a7a Fix Plantronics Hub 2021-04-15 09:12:50 +01:00
6 changed files with 529 additions and 284 deletions

View File

@@ -1,3 +1,8 @@
- Change in finding installed apps. We now look in /Applications and /Applications/Utilities first. If not found there, we use spotligt to find it. (We discovered a problem when a user has Parallels Windows installed with Microsoft Edge in it. Then Installomator wanted to update the app all the time, becaus spotligt found that Windows version of the app that Parallels created.)
- Added bunch of new labels
- Improved `buildCaseStatement.sh` a lot. It is a great start when figuring out how to create a new label for an app, or a piece of software.
- Mosyle changed their app name from Business to Self-Service
## v0.5 - 2021-04-13
- Major update and now with help from @Theile and @Isaac

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,5 @@
1password7
4kvideodownloader
8x8
abstract
adobebrackets
@@ -8,20 +9,32 @@ adobereaderdc-install
adobereaderdc-update
aircall
airserver
aldente
alfred
alttab
amazonchime
amazonworkspaces
androidfiletransfer
anydesk
apparency
appcleaner
applenyfonts
applesfcompact
applesfmono
applesfpro
aquaskk
arq7
atext
atom
audacity
autodmg
autopkgr
aviatrix
awscli2
awsvpnclient
balenaetcher
balsamiqwireframes
bartender
basecamp3
bbedit
bettertouchtool
@@ -36,6 +49,7 @@ camostudio
camtasia
citrixworkspace
clevershare2
clickshare
code42
coderunner
cormorant
@@ -45,6 +59,7 @@ dangerzone
darktable
dbeaverce
debookee
defaultfolderx
depnotify
desktoppr
detectxswift
@@ -52,19 +67,24 @@ devonthink
dialpad
discord
docker
drift
dropbox
easeusdatarecoverywizard
egnyte
element
eraseinstall
etrecheck
evernote
exelbanstats
fantastical
favro
ferdi
figma
firefox
firefox_da
firefox_intl
firefoxesr
firefoxesr_intl
firefoxesrpkg
firefoxpkg
front
@@ -79,20 +99,23 @@ googledrivebackupandsync
googledrivefilestream
googleearth
googlejapaneseinput
googlesoftwareupdate
gotomeeting
gpgsuite
gpgsync
grandperspective
grasshopper
gyazo
gyazogif
hancock
handbrake
hazel
hpeasyadmin
hpeasystart
hyper
icons
imazingprofileeditor
inkscape
installomator_st
installomator_theile
intellijideace
istatmenus
@@ -111,6 +134,7 @@ karabinerelements
keepassxc
keka
keyboardmaestro
keyboardmaestro
klokki
knockknock
krisp
@@ -119,6 +143,7 @@ lastpass
launchbar
lexarrecoverytool
libreoffice
logitechoptions
loom
lucifer
lulu
@@ -155,6 +180,7 @@ nomad
nomadlogin
notion
nvivo
obs
obsidian
odrive
omnidisksweeper
@@ -180,6 +206,7 @@ prism9
privileges
proctortrack
promiseutilityr
proxyman
pycharmce
pymol
r
@@ -199,11 +226,13 @@ royaltsx
rstudio
santa
screamingfrogseospider
screenflick
sfsymbols
shield
sidekick
signal
silnite
sirimote
sizeup
sketch
skype
@@ -218,24 +247,30 @@ sonoss2
sourcetree
spotify
sublimetext
supportapp
suspiciouspackage
swiftruntimeforcommandlinetools
tableaudesktop
tableaureader
taskpaper
teamviewer
teamviewerhost
teamviewerqs
techsmithcapture
telegram
textexpander
textmate
theunarchiver
things
thunderbird
tigervnc
toggltrack
torbrowser
trex
tunnelbear
tunnelblick
umbrellaroamingclient
universaltypeclient
uniconverter
universaltypeclient
vagrant
vanilla
@@ -247,14 +282,17 @@ vivaldi
vlc
vmwarehorizonclient
vscodium
webex
webexmeetings
webexteams
whatsapp
wickrme
wickrpro
wireshark
wwdc
xeroxphaser7800
xink
xquartz
yubikeymanagerqt
zappy
zoom

View File

@@ -12,7 +12,7 @@ I have put a lot of work into making it stable and safe, but I cannot - of cours
## Support and Contributing
Discussion, support and advice around Installomator happens in the `#installomator` channel in the [MacAdmins Slack](https:/macadmins.org). Go there for support questions.
Discussion, support and advice around Installomator happens in the `#installomator` channel in the [MacAdmins.org Slack](https://macadmins.org). Go there for support questions.
Do not create an issue just when you have a questions, but do file an issue or pull request for bugs or wrong behavior. When in doubt, ask in the above Slack channel.

View File

@@ -5,6 +5,10 @@ export PATH=/usr/bin:/bin:/usr/sbin:/sbin
downloadURL=${1?:"need to provide a download URL"}
# Note: this tool _very_ experimental and does not work in many cases
# That being said, it's a great place to start for building up the label in the Case-statement
# Usage
# ./buildCaseStatement.sh <URL to download software>
# create temporary working directory
@@ -20,15 +24,7 @@ fi
# download the URL
echo "Downloading $downloadURL"
<<<<<<< HEAD
<<<<<<< Updated upstream
if ! archivePath=$(curl -fsL "$downloadURL" --remote-header-name --remote-name -w "%{filename_effective}"); then
=======
if ! downloadOut="$(curl -fsL "$downloadURL" --remote-header-name --remote-name -w "%{filename_effective}\n%{url_effective}\n")"; then
>>>>>>> Stashed changes
=======
if ! downloadOut="$(curl -fsL "$downloadURL" --remote-header-name --remote-name -w "%{filename_effective}\n%{url_effective}\n")"; then
>>>>>>> 4932ea6a3186d902d88c9bb5a3774c6ff81b1608
echo "error downloading $downloadURL"
exit 2
fi
@@ -44,13 +40,6 @@ xpath() {
fi
}
<<<<<<< HEAD
<<<<<<< Updated upstream
#archivePath=$(find $tmpDir -print )
echo "archivePath: $archivePath"
archiveName=${archivePath##*/}
echo "archiveName: $archiveName"
=======
pkgInvestigation() {
echo "Package found"
teamID=$(spctl -a -vv -t install "$archiveName" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' )
@@ -81,39 +70,6 @@ echo "archivePath: $archivePath"
archiveName=${archivePath##*/}
echo "archiveName: $archiveName"
mv $archiveTempName $archiveName
>>>>>>> Stashed changes
=======
pkgInvestigation() {
echo "Package found"
teamID=$(spctl -a -vv -t install "$archiveName" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' )
echo "For PKGs it's advised to find packageID for version checking"
pkgutil --expand "$pkgPath" "$archiveName"_pkg
cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null
packageID="$(cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null | tr ' ' '\n' | grep -i "id" | cut -d \" -f 2)"
rm -r "$archiveName"_pkg
echo "$packageID"
echo "Above is the possible packageIDs that can be used, and the correct one is probably one of those with a version number. More investigation might be needed to figure out correct packageID if several are displayed."
}
appInvestigation() {
appName=${appPath##*/}
# verify with spctl
echo "Verifying: $appPath"
if ! teamID=$(spctl -a -vv "$appPath" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' ); then
echo "Error verifying $appPath"
exit 4
fi
}
echo "downloadOut: ${downloadOut}"
archiveTempName=$( echo "${downloadOut}" | head -1 )
echo "archiveTempName: $archiveTempName"
archivePath=$( echo "${downloadOut}" | tail -1 )
echo "archivePath: $archivePath"
archiveName=${archivePath##*/}
echo "archiveName: $archiveName"
mv $archiveTempName $archiveName
>>>>>>> 4932ea6a3186d902d88c9bb5a3774c6ff81b1608
name=${archiveName%.*}
echo "name: $name"
archiveExt=${archiveName##*.}
@@ -122,25 +78,8 @@ identifier=$(echo $name | tr '[:upper:]' '[:lower:]')
echo "identifier: $identifier"
if [ "$archiveExt" = "pkg" ]; then
<<<<<<< HEAD
<<<<<<< Updated upstream
echo "Package found"
teamID=$(spctl -a -vv -t install "$archiveName" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' )
echo "For PKGs it's advised to find packageID for version checking"
pkgutil --expand "$archiveName" "$archiveName"_pkg
cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null
packageID="$(cat "$archiveName"_pkg/Distribution | xpath '//installer-gui-script/pkg-ref[@id][@version]' 2>/dev/null | tr ' ' '\n' | grep -i "id" | cut -d \" -f 2)"
rm -r "$archiveName"_pkg
echo "$packageID"
echo "Above is the possible packageIDs that can be used, and the correct one is probably one of those with a version number. More investigation might be needed to figure out correct packageID if several are displayed."
=======
pkgPath="$archiveName"
pkgInvestigation
>>>>>>> Stashed changes
=======
pkgPath="$archiveName"
pkgInvestigation
>>>>>>> 4932ea6a3186d902d88c9bb5a3774c6ff81b1608
elif [ "$archiveExt" = "dmg" ]; then
echo "Diskimage found"
# mount the dmg
@@ -182,15 +121,7 @@ elif [ "$archiveExt" = "zip" ] || [ "$archiveExt" = "tbz" ]; then
fi
echo
<<<<<<< HEAD
<<<<<<< Updated upstream
echo "appNewVersion is often difficult to find. Can sometimes be found in the filename, but also on a web page."
=======
echo "appNewVersion is often difficult to find. Can sometimes be found in the filename, but also on a web page. See archivePath above if link contains information about this."
>>>>>>> Stashed changes
=======
echo "appNewVersion is often difficult to find. Can sometimes be found in the filename, but also on a web page. See archivePath above if link contains information about this."
>>>>>>> 4932ea6a3186d902d88c9bb5a3774c6ff81b1608
echo
echo "$identifier)"
echo " name=\"$name\""

View File

@@ -10,66 +10,19 @@
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
pkgname="Installomator"
version="0.5"
version="0.6"
identifier="com.scriptingosx.${pkgname}"
install_location="/usr/local/Installomator/"
signature="Developer ID Installer: Armin Briegel (JME5BW3F3R)"
dev_team="JME5BW3F3R" # asc-provider
dev_account="developer@scriptingosx.com"
dev_keychain_label="Developer-altool"
dev_keychain_label="notary-scriptingosx"
scriptfolder=$(dirname "$0")
projectfolder=$(mktemp -d)
payloadfolder="${projectfolder}/payload"
# MARK: functions
requeststatus() { # $1: requestUUID
requestUUID=${1?:"need a request UUID"}
req_status=$(xcrun altool --notarization-info "$requestUUID" \
--username "$dev_account" \
--password "@keychain:$dev_keychain_label" 2>&1 | awk -F ': ' '/Status:/ { print $2; }' )
echo "$req_status"
}
notarizefile() { # $1: path to file to notarize, $2: identifier
filepath=${1:?"need a filepath"}
identifier=${2:?"need an identifier"}
# upload file
echo "## uploading $filepath for notarization"
requestUUID=$(xcrun altool --notarize-app \
--primary-bundle-id "$identifier" \
--username "$dev_account" \
--password "@keychain:$dev_keychain_label" \
--asc-provider "$dev_team" \
--file "$filepath" 2>&1 | awk '/RequestUUID/ { print $NF; }')
echo "Notarization RequestUUID: $requestUUID"
if [[ $requestUUID == "" ]]; then
echo "could not upload for notarization"
exit 1
fi
# wait for status to be not "in progress" any more
request_status="in progress"
while [[ "$request_status" == "in progress" ]]; do
echo -n "waiting... "
sleep 10
request_status=$(requeststatus "$requestUUID")
echo "$request_status"
done
if [[ $request_status != "success" ]]; then
echo "## could not notarize $filepath"
xcrun altool --notarization-info "$requestUUID" \
--username "$dev_account" \
--password "@keychain:$dev_keychain_label"
exit 1
fi
}
# MARK: main code starts here
@@ -94,7 +47,6 @@ pkgbuild --root "${projectfolder}/payload" \
--install-location "${install_location}" \
"${pkgpath}"
# build the product archive
productpath="${scriptfolder}/${pkgname}-${version}.pkg"
@@ -108,8 +60,10 @@ productbuild --package "${pkgpath}" \
# clean up project folder
rm -Rf "${projectfolder}"
# NOTE: notarytool requires Xcode 13
# upload for notarization
notarizefile "$productpath" "$identifier"
xcrun notarytool submit "$productpath" --keychain-profile "$dev_keychain_label" --wait
# staple result
echo "## Stapling $productpath"