Questions tagged [pkgbuild]

Build utility for OSX and iOS installer components.

pkgbuild can refer to the OSX/iOS build tool that builds installer component .pkg files. An OSX product installer can be created from multiple .pkg files.

141 questions
0
votes
0 answers

Discord.js client doesn't do anything after compiling

i have a basic Discord.js application in a nodejs project. When i launch my file via node client.js everything works completly fine, the bot listens to messages/commands and events at all. But after compiling my app to an executable (with node…
0
votes
2 answers

add a makepkg dlagent, which accept a non zero exit code

For some downloads lgogdownloader return always the exit code 141 after a successful download. Because of this the dlagent should catch this exit code. I have already try some dlagents, but non of this…
0
votes
0 answers

Brew is installed but not identified as a command inside postinstall script of `pkgbuild` (MacOS)

I have a small shell script that installs Brew if it is not already installed. #!/bin/bash -v which -s brew if [[ $? != 0 ]] ; then # Install Homebrew echo "Installing Brew..." /bin/bash -c "$(curl -fsSL…
hxvxt2
  • 39
  • 1
  • 4
0
votes
1 answer

PKGBUILD and makepkg: "warning: directory permissions differ"

Providing --root to setup.py like: package() { cd "$srcdir"/"$_gitname" python3 setup.py install --prefix=$pkgdir/usr --root=$pkgdir } with the following setup.py file: import DistUtilsExtra.auto DistUtilsExtra.auto.setup( …
sezanzeb
  • 816
  • 8
  • 20
0
votes
1 answer

Creating a pkg installer for MacOs with the ability to install in the user's home directory

I want to create a pkg file to install the bundle in the user directory (/Users//Applications/). How can I do it? I used the product build with the transfer of the file to the product: productbuild --component ./Bundle.app --product…
m1lka
  • 1
  • 1
  • 2
0
votes
1 answer

How to wait for osascript to produce a result

sometimes my AppleScript code seems to fail, on other machines is works. I run this AppleScript code as heredoc from inside a shell script. The shell script is a postinstall script run by a pkg installer and runs as root: #!/bin/sh set…
Robert
  • 160
  • 9
0
votes
1 answer

error while installing GNS3 server from GitHub using pypi2pkgbuild to create PKGBUILD and install everything via pacman

I'm trying to install GNS3 on my Manjaro machine. I followed along with this medium blog https://medium.com/@Ninja/install-gns3-on-arch-manjaro-linux-the-right-way-c5a3c4fa337d the problem is when I use the command "pypi2pkgalias git+file://$PWD" in…
Amgd Gocha
  • 11
  • 2
0
votes
1 answer

Zero-byte Application being installed from pkgbuild generated .pkg installer

this is the shell script that I use to generate the .pkg installer. #!/bin/bash APP_PATH=$1 DSYM_PATH=$2 PKG_PATH=$3 IDENTIFIER=$4 VERSION=$5 TARGET_DIR=$(dirname "$APP_PATH")/temp echo "Deleting old Pkg File." rm -rf $PKG_PATH rm -rf…
신한슬
  • 189
  • 12
0
votes
0 answers

Issue using filename having space as argument in NSTASK (objective-c)

I am trying to pass argument having space in the foldername to NSTASK. However, the command is not executed successfully, but when i try to do it manually on commandline, it works fine. NSMutableString* archive_path=[[NSMutableString alloc]init]; …
Emad mohd
  • 33
  • 5
0
votes
1 answer

Package name is not getting displayed on the installation dialog of my pkg

I am creating a .pkg from other .pkg files. When I try to install the resultant .pkg i can only see "install" on the dialog box package name is not getting displayed on the installation dialog box. How can I make the package name appear on the…
Hameed Basha
  • 13
  • 1
  • 7
0
votes
0 answers

Add Custom Files to a Package to be installed on specific paths with productbuild/pkgbuild?

I rebuild an existing pkg with productbuild. My root path looks like this: ROOT > Applications/Scripts/Library/private/ In Applications/ is my .app , which works. However in Library for example is another folder "Desktop Pictures" and there is a…
samecat
  • 335
  • 1
  • 11
0
votes
2 answers

Mac installer overwrites ALL copies of file

I’m having an odd issue where my installer properly overwrites the previously installed app, but then overwrites the app in my build directory. My installer build looks like this: mkdir /tmp/foo cp -R…
pizzafilms
  • 3,829
  • 4
  • 24
  • 39
0
votes
2 answers

How to build GTK+ with Msys2

I am following this page to build GTK+ on Windows with MSYS2, following the GTK official page. I got stuck right here: Create a PKGBUILD file as you would do for Arch Linux for the package you would like to build for windows. You can find the…
CaTx
  • 1,421
  • 4
  • 21
  • 42
0
votes
0 answers

When postupgrade is indeed called in MacOSX pkg?

Good morning, I am reading about the prepared scripts in MacOSX to use when creating a pkg for my application. In particular, I have some doubts how to make sure that postupgrade script is used. What I read till now is: from here The postupgrade…
n3mo
  • 663
  • 8
  • 23
0
votes
0 answers

Creating a .pkg file on a javascript website

I can't seem to figure out a way to convert files from my AWS S3 to a .pkg file on a javascript website. The files will be converted and uploaded back to AWS as a pkg. Does anyone know how to do this all online, either server side or with…