-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fully support relocatable binaries, improving AppImages
* You can now specify `--with-scitecodatadir` as a relative path, that will be interpreted relative to the binary's location. * Win32 binaries already were relocatable, but this was a Windows-specific hack. Win32 binaries are now built with `--with-scitecodatadir=.` since everything is in a single directory. * Ubuntu packages are now also built `--with-scitecodatadir=../share/sciteco`. This is not crucial for ordinary installations, but is meant for AppImage creation. * Since AppImages are now built from relocatable packages, we no longer need the unionfs-workaround from pkg2appimage. This should fix the strange root contents when autocompleting in AppImage builds. * This might also fix the appimage.github.io CI issues. I assume that because I could reproduce the issue on FreeBSD's Linuxulator in dependence of pkg2appimage's "union"-setting. See AppImage/appimage.github.io#3402 * Determining the binary location actually turned out be hard and very platform-dependant. There are now implementations for Windows (which could also read argv[0]), Linux and generic UNIX (which works on FreeBSD, but I am not sure about the others). I believe this could also be useful on Mac OS to create app bundles, but this needs to be tested - currently the Mac OS binaries are installed into fixed locations and don't use relocation.
- Loading branch information
1 parent
36c7526
commit 9cce7d2
Showing
11 changed files
with
153 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,7 @@ mingw-binary : @PACKAGE@-@[email protected] | |
PKG_CONFIG_LIBDIR=/usr/i686-w64-mingw32/lib/pkgconfig \ | ||
./configure --host=i686-w64-mingw32 build=i386-pc-linux-gnu \ | ||
--prefix=/usr \ | ||
--with-scitecodatadir=. \ | ||
--enable-static-executables \ | ||
--disable-dependency-tracking \ | ||
--with-interface=$(MINGW_UI) \ | ||
|
@@ -122,11 +123,11 @@ mingw-binary : @PACKAGE@-@[email protected] | |
install-strip DESTDIR=`pwd`/temp-install | ||
rm -rf $(SCITECO_DIR)/ | ||
mkdir temp-bin/ | ||
cp -r temp-install/usr/bin/* temp-install/usr/share/sciteco/* \ | ||
cp -r temp-install/usr/bin/* \ | ||
temp-install/usr/share/doc/sciteco/* \ | ||
temp-bin/ | ||
cp @srcdir@/win32.teco_ini temp-bin/.teco_ini || \ | ||
cp temp-install/usr/share/sciteco/sample.teco_ini \ | ||
cp temp-install/usr/bin/sample.teco_ini \ | ||
temp-bin/.teco_ini | ||
cp @srcdir@/COPYING @srcdir@/ChangeLog temp-bin/ | ||
rm -rf temp-install/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.