Stuck on make dist, cd: dist: Not a directory

Hi everyone! So, I’m trying to make the Win dist file for my plugins but it fails at the last step:

$ make dist
...
cd dist && tar -c AS | zstd -19 -o "AS"-"2.0.0"-win.vcvplugin
/bin/sh: line 1: cd: dist: Not a directory
make: *** [../../plugin.mk:72: dist] Error 1

But, the dist directory is there, whit the plugin folder and all files required. What should I look for to fix this? I had to do a fresh install of MSYS2, followed all the instructions just fine

Is it possible you have a file called dist getting in the way? What does ls -l say?

2 Likes

make clean , then make dist in top level of your AS Module plugin folder should work fine if RACK_DIR set sane, so it is found. That seems so, if it is only failing on last step. maybe Makefilke is looking in wrong spot for the dist directory, so check all paths and env variables used for the final tar compress to .vcvplugin

1 Like

Hi Richie, make clean gets rid of the dist file so, no way I guess:

After make clean and make dist:

$ ls -l
total 40552
-rw-r--r-- 1 WinPC None   492321 Feb 29  2020 AS.JPG
-rw-r--r-- 1 WinPC None    22371 Jun 19  2019 LICENSE.txt
-rw-r--r-- 1 WinPC None      162 Jun 19  2019 Makefile
-rw-r--r-- 1 WinPC None    14057 Feb 29  2020 README.md
drwxr-xr-x 1 WinPC None        0 Nov 14 18:22 build
drwxr-xr-x 1 WinPC None        0 Jul  7  2019 dep
drwxr-xr-x 1 WinPC None        0 Nov 14 18:22 dist
drwxr-xr-x 1 WinPC None        0 Jun 19  2019 freeverb
-rwxr-xr-x 1 WinPC None 40087244 Nov 14 18:22 plugin.dll
-rw-r--r-- 1 WinPC None   856764 Nov  8 23:06 plugin.dylib
-rw-r--r-- 1 WinPC None     9810 Oct 25 13:41 plugin.json
drwxr-xr-x 1 WinPC None        0 Nov  8 14:00 res
drwxr-xr-x 1 WinPC None        0 Feb 29  2020 src
drwxr-xr-x 1 WinPC None        0 Feb 29  2020 src2

Im using Rack-SDK for both Win and Linux builds on VirtualBox (plugin.mk is the same for every platform ), maybe because I’m using a shared folder somehow cd command fails on Win?(it worked fine before, back on v1 builds) if I do manually cd dist and tar -c, the .vcvplugin file gets created. On Linux And Mac it works ok… something weird is going on.

That seems like a weird pathing issue somewhere. some env variable not set right for the win build somehow?

1 Like