#15 File Permissions for Mac OS X Build

2.1rc1
closed-accepted
nobody
None
5
2005-12-12
2005-12-08
Charles Albrecht
No

Here's a patch for sql12/build/build.xml.

I noticed that the OS X builds do not have the right permissions for
SquirrelSQL.app/Contents/MacOS/JavaApplicationStub. This prevents it
from launching via the UI. Not surprising, given that zip doesn't
preserve file permissions - at least not in ant. Ant's tar doesn't directly
pick up file permissions either, without the use of filesets which specify
the permission mode.

I imagine that distributions with *.sh shell scripts might have the same
sort of problem.

My personal preference is .tgz, rather than .tar.gz - I'm not sure what
the project defaults are on this. I believe both are handled
transparently for users on Mac OS X 10.3 or later.

% diff build.xml-1.28 build.xml
635,636c635,645
< <!--<tar tarfile="${dist_dir}/SquirrelSQLMac.tar"
basedir="${dist_dir}/mac"/>-->
< <zip destfile="${dist_dir}/SquirrelSQLMac.zip" basedir="$
{dist_dir}/mac"/>
---
> <tar destfile="${dist_dir}/SquirrelSQLMac.tgz"
compression="gzip">
> <tarfileset dir="${dist_dir}/mac" mode="755">
> <include name="**/JavaApplicationStub" />
> </tarfileset>
> <tarfileset dir="${dist_dir}/mac">
> <include name="**" />
> <exclude name="**/JavaApplicationStub" />
> </tarfileset>
> </tar>

Discussion

    • status: open --> closed-accepted
     
  • Logged In: YES
    user_id=211712

    Patch applied for bug 1377304.