Skip to content

Commit

Permalink
fix: libpng12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
HDVinnie committed Jul 8, 2020
1 parent 6c0f580 commit 9155b94
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Configs/os.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'zip' => 'Compress Files',
'unzip' => 'Decompress Files',
'htop' => 'Monitor Server Resources',
'libpng12-0' => 'PNG Library',
],
]

Expand Down
5 changes: 1 addition & 4 deletions src/Installer/UNIT3D/Unit3dSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ protected function setup()
$this->process([
'supervisorctl reread',
'supervisorctl update',
'supervisorctl reload',
'wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb',
'dpkg -i /tmp/libpng12.deb',
'rm /tmp/libpng12.deb'
'supervisorctl reload'
]);

$www_cmds = [
Expand Down
14 changes: 14 additions & 0 deletions ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ check_locale() {
echo -e "$IGreen OK $Color_Off"
}

# Adds PPA's
add_ppa() {
echo -e "\n$Cyan Adding PPA Repositories ... $Color_Off"

for ppa in "$@"; do
add-apt-repository -y $ppa > /dev/null 2>&1
check $? "Adding $ppa Failed!"
done

echo -e "$IGreen OK $Color_Off"
}

# Installs Environment Prerequisites
add_pkgs() {
# Update apt
Expand Down Expand Up @@ -71,6 +83,8 @@ check() {

check_locale

add_ppa ppa:linuxuprising/libpng12

add_pkgs

install_composer
Expand Down

0 comments on commit 9155b94

Please sign in to comment.