Skip to content

Commit

Permalink
Version 1.2.35
Browse files Browse the repository at this point in the history
  • Loading branch information
lanmessenger committed Nov 7, 2016
1 parent 3738c31 commit 4ca845e
Show file tree
Hide file tree
Showing 65 changed files with 4,686 additions and 3,316 deletions.
51 changes: 50 additions & 1 deletion PLATFORM_SPECIFIC.TXT
Expand Up @@ -20,6 +20,13 @@ Working directory: %{sourceDir}
Command arguments: %{buildDir}\..\debug (for debug)
Command arguments: %{buildDir}\..\release release (for release)

For building the installer, run setup.bat in lmc\setup\win32 folder. NSIS must
be installed first. The batch file executes an NSIS script (setup.nsi) to
generate the installer. The NSIS script contains two variables called
ProductVersion and InstallerVersion that must be set whenever the application
version changes. The installer generated will have the name
lmc-<version>-win32.exe and it will be saved to lmc\setup folder.


Linux/X11
---------
Expand Down Expand Up @@ -53,4 +60,46 @@ To debug a running application, run this command before attaching to the process
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

This will be valid only for the current session. It has to be run again
after a log out or restart.
after a log out or restart.

For building the installer, run the bash script "setup" in lmc/setup/x11 folder.
Make sure the scripts named "postinst", "postrm" and "prerm" in the folder
package/DEBIAN have executable permission. The file "control" in the same folder
should be edited to reflect the proper version and installed size (in KB) of the
application. The scripts "lmc" and "whitelist" in package/usr/bin must also have
executable permission. All files and folder inside package folder must be owned
by root user.

The setup script generates the deb installation package which will be saved to
lmc/setup folder. The package will have the name lmc_<version>_i386.deb. For
generating rpm package, alien must be installed first. To install alien, run:
sudo apt-get install alien
Execute "rpm_setup" script in lmc/setup/x11 to generate an rpm package from the
deb package (deb package must be created first). This package will have the name
lmc-<version>-2.i386.rpm and will be saved to lmc/setup folder.


Mac OS X
--------
Build directory for debug is lmc/debug.
Build directory for release is lmc/release.
lmc
|-debug
|-release
|-src

The custom build script needs executable permission. Run the following command:
chmod 755 ./scripts/buildmacos

The custom build step needs the following parameters:
Command: ./scripts/buildmacos
Working directory: %{sourceDir}
Command arguments: %{buildDir}/LAN-Messenger.app/Contents/MacOS

For building the installer, first run the bash script "createdisk" in
lmc/setup/mac folder. This will create a disk image and copy all the required
files needed for the application to it. Now open up the disk image, set the
background image, icon size (96x96), icon position, icon arrangment (Snap to
Grid) and window size. Now run the script "addlicense" to add the user license
and compress the disk image. The dmg file will have the name
lmc_<version>_intel.dmg and will be saved to lmc/setup folder.
4 changes: 2 additions & 2 deletions lmc/setup/win32/setup.nsi
Expand Up @@ -34,8 +34,8 @@ SetCompressor /SOLID lzma

!define ProductName "LAN Messenger"
!define CompanyName "LAN Messenger"
!define ProductVersion "1.2.32"
!define InstallerVersion "1.2.3.2"
!define ProductVersion "1.2.35"
!define InstallerVersion "1.2.3.5"
!define ProductUrl "http://lanmsngr.sourceforge.net"
!define CompanyRegKey "SOFTWARE\${CompanyName}"
!define AppRegKey "${CompanyRegKey}\${ProductName}"
Expand Down
4 changes: 2 additions & 2 deletions lmc/setup/x11/package/DEBIAN/control
@@ -1,8 +1,8 @@
Package: lmc
Version: 1.2.28
Version: 1.2.32
Architecture: i386
Maintainer: Qualia Digital Solutions <qualiatech@gmail.com>
Installed-Size: 45867
Installed-Size: 50000
Section: web
Priority: optional
Depends: libaudio2
Expand Down
18 changes: 18 additions & 0 deletions lmc/setup/x11/package/usr/lib/lmc/whitelist
@@ -0,0 +1,18 @@
#!/bin/bash
SCHEMA="com.canonical.Unity.Panel"
OBJECT="systray-whitelist"
APP="$1"
if [ ! "$(gsettings get $SCHEMA $OBJECT 2>/dev/null || echo FALSE)" = "FALSE" ]; then
echo "Whitelisting $APP to work around Unity design.."
OBJARRAY=$(gsettings get $SCHEMA $OBJECT | sed -s -e "s#\['##g" -e "s#', '# #g" -e "s#'\]##g")
if [[ "${OBJARRAY[@]}" =~ "$APP" ]]; then
echo "$APP already whitelisted, skipping"
else
OBJARRAY=("${OBJARRAY[@]}" $APP)
OBJARRAY=$(echo ${OBJARRAY[@]} | sed -s -e "s# #', '#g")
OBJSET="['"$OBJARRAY"']"
gsettings set $SCHEMA $OBJECT "$OBJSET"
fi
else
echo "This is not a Canonical \"designed\" product."
fi

0 comments on commit 4ca845e

Please sign in to comment.