Wapt packages for MAC

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
ingemedia
Messages: 2
Registration: March 28, 2020 - 1:33 PM

April 9, 2020 - 10:55 AM

Good morning,
A few weeks ago, I offered to share my WAPT packages for Mac (I'm just providing a copy/paste of my setup.py files, which you can then modify). They are listed alphabetically. Feel free to add your own suggestions or corrections :)

7ZIP:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
hdiutil attach "7zX_1.7.1.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/7zX/7zX.app" "/Applications/7zX.app"
chown -R root:wheel "/Applications/7zX.app"
chmod -R 755 "/Applications/7zX.app"
sleep 3
hdiutil detach "/Volumes/7zX" -quiet""")

def uninstall():
    run('rm -rf /Applications/7zX -quiet')


ANDROID STUDIO:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
hdiutil attach "android-studio-ide-192.6241897-mac.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/Android Studio 3.6.1/Android Studio.app" "/Applications/Android Studio.app"
chown -R root:wheel "/Applications/Android Studio.app"
chmod -R 755 "/Applications/Android Studio.app"
sleep 3
hdiutil detach "/Volumes/Android Studio 3.6.1" -quiet""")

def uninstall():
    run('rm -rf "/Applications/Android Studio.app"')


AUDACITY:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():

    run("""
hdiutil attach "audacity-macos-2.3.3.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/Audacity 2.3.3/Audacity.app" "/Applications/Audacity.app"
chown -R root:wheel "/Applications/Audacity.app"
chmod -R 755 "/Applications/Audacity.app"
sleep 3
hdiutil detach "/Volumes/Audacity 2.3.3" -quiet""")

def uninstall():
    run('rm -rf /Applications/Audacity.app')

FILEZILLA:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
tar -jxvf FileZilla_3.47.2.1_macosx-x86.app.tar.bz2
mv FileZilla.app /Applications/
chown -R root:wheel /Applications/FileZilla.app
chmod -R 755 /Applications/FileZilla.app""")

def uninstall():
    run('rm -rf /Applications/FileZilla.app')



FIREFOX_ESR:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
hdiutil attach "Firefox 68.6.0esr.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/Firefox/Firefox.app" "/Applications/Firefox.app"
chown -R root:wheel "/Applications/Firefox.app"
chmod -R 755 "/Applications/Firefox.app"
sleep 3
hdiutil detach "/Volumes/Firefox" -quiet""")

def uninstall():
    run('rm -rf /Applications/Firefox.app')

GEANY:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
hdiutil attach "geany-1.36_osx-2.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/Geany 1.36/Geany.app" "/Applications/Geany.app"
chown -R root:wheel "/Applications/Geany.app"
chmod -R 755 "/Applications/Geany.app"
sleep 3
hdiutil detach "/Volumes/Geany 1.36" -quiet""")

def uninstall():
    run('rm -rf "/Applications/Geany.app"')


GEPHI:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
hdiutil attach "gephi-0.9.2-macos.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/Gephi 0.9.2/Gephi.app" "/Applications/Gephi.app"
chown -R root:wheel "/Applications/Gephi.app"
chmod -R 755 "/Applications/Gephi.app"
sleep 3
hdiutil detach "/Volumes/Gephi 0.9.2" -quiet""")

def uninstall():
    run('rm -rf /Applications/Gephi.app')

GOOGLE CHROME:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
hdiutil attach "googlechrome.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/Google Chrome/Google Chrome.app" "/Applications/Google Chrome.app"
chown -R root:wheel "/Applications/Google Chrome.app"
chmod -R 755 "/Applications/Google Chrome.app"
sleep 3
hdiutil detach "/Volumes/Google Chrome" -quiet""")

def uninstall():
    run('rm -rf "/Applications/Google Chrome.app"')
    run(r'"googlechrome.dmg" /VERYSILENT') //je ne sais plus pourquoi cette ligne... à vérifier

SKYPE:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""r'"" /VERYSILENT')
hdiutil attach "Skype-8.58.0.93.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/Skype/Skype.app" "/Applications/Skype.app"
chown -R root:wheel "/Applications/Skype.app"
chmod -R 755 "/Applications/Skype.app"
sleep 3
hdiutil detach "/Volumes/Skype" -quiet""")

def uninstall():
    run('rm -rf "/Applications/Skype.app"')
VIRTUALBOX:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
hdiutil attach "VirtualBox-6.1.4-136177-OSX.dmg" -nobrowse -quiet
installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target /
chown -R root:wheel "/Applications/VirtualBox.app"
chmod -R 755 "/Applications/VirtualBox.app"
sleep 3
hdiutil detach "/Volumes/VirtualBox" -quiet""")

def uninstall():
        run('rm -rf /Applications/VirtualBox.app')

VLC:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
hdiutil attach "vlc-3.0.8.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/VLC media player/VLC.app" "/Applications/VLC.app"
chown -R root:wheel "/Applications/VLC.app"
chmod -R 755 "/Applications/VLC.app"
sleep 3
hdiutil detach "/Volumes/VLC media player" -quiet""")

def uninstall():
    run('rm -rf /Applications/VLC.app')

VSCODE:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
unzip VSCode-darwin-stable.zip -d /Applications
chown -R root:wheel "/Applications/Visual Studio Code.app"
chmod -R 755 "/Applications/Visual Studio Code.app"
""")

def uninstall():
    run('rm -rf /Applications/Visual\ Studio\ Code.app')


XCODE:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    run("""
mv Xcode_11.3.1.xip /Applications/
cd /Applications/
xip -x Xcode_11.3.1.xip
rm -f Xcode_11.3.1.xip
chown -R root:wheel "/Applications/Xcode.app"
chmod -R 755 "/Applications/Xcode.app"
""")

def uninstall():
    run('rm -rf "/Applications/Xcode.app"')



ZOTERO:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
     run("""
hdiutil attach "Zotero-5.0.85.dmg" -nobrowse -quiet
ditto -rsrc "/Volumes/Zotero/Zotero.app" "/Applications/Zotero.app"
chown -R root:wheel "/Applications/Zotero.app"
chmod -R 755 "/Applications/Zotero.app"
sleep 3
hdiutil detach "/Volumes/Zotero" -quiet""")

def uninstall():
    run('rm -rf /Applications/Zotero.app')
Locked