Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' with latest Dustin's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed May 11, 2014
2 parents 11ebbfe + 7f580c5 commit 9b0bd87
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 33 deletions.
68 changes: 36 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
# Cnchi
= Cnchi =

Graphical Installer for Antergos Linux (FKA Cinnarch Linux)
**Graphical Installer for Antergos Linux (FKA Cinnarch Linux)**

Usage: sudo -E cnchi.py
Usage:
```lang=sh
sudo -E cnchi.py```
To create logs to help debug problems: sudo -E cnchi.py -dv
To create logs to help debug problems:
```lang=sh
sudo -E cnchi.py -dv```
## Translations
==Translations
We manage our translations in transifex:
* https://www.transifex.com/projects/p/antergos/

## Dependencies

* gtk3
* python3
* python-cairo
* python-dbus
* python-gobject
* python-mako
* pyparted (parted, dosfstools, mtools, ntfs-3g, ntfsprogs)
* pyalpm (pacman)
* libtimezonemap
* webkitgtk
* hdparm
* hwinfo
* upower
- https://www.transifex.com/projects/p/antergos/
==Dependencies
- gtk3
- python3
- python-cairo
- python-dbus
- python-gobject
- python-mako
- pyparted (parted, dosfstools, mtools, ntfs-3g, ntfsprogs)
- pyalpm (pacman)
- libtimezonemap
- webkitgtk
- hdparm
- hwinfo
- upower
#### Unit tests
==Unit tests
* python-mock
- python-mock
#### Fonts needed by the keyboard widget
==Fonts needed by the keyboard widget
* ttf-aboriginal-sans
* ttf-indic-otf
* ttf-khmer
* ttf-lohit-fonts
* ttf-myanmar3
* ttf-thaana-fonts
* ttf-tlwg
- ttf-aboriginal-sans
- ttf-indic-otf
- ttf-khmer
- ttf-lohit-fonts
- ttf-myanmar3
- ttf-thaana-fonts
- ttf-tlwg
1 change: 1 addition & 0 deletions data/packages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
<pkgname>file-roller</pkgname>
<pkgname>gedit</pkgname>
<pkgname>gnome-calculator</pkgname>
<pkgname>gnome-common</pkgname>
<pkgname>gnome-disk-utility</pkgname>
<pkgname>gnome-keyring</pkgname>
<pkgname>gnome-screenshot</pkgname>
Expand Down
34 changes: 34 additions & 0 deletions scripts/fonts.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="autohint" >
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>
8 changes: 8 additions & 0 deletions scripts/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,14 @@ postinstall(){
if [[ $DESKTOP != 'nox' ]];then
set_synaptics
fi

# Configure fontconfig
FONTCONFIG_FILE="/usr/share/cnchi/scripts/fonts.conf"
FONTCONFIG_DIR="${DESTDIR}/home/${USER_NAME}/.config/fontconfig"
if [ -f ${FONTCONFIG_FILE} ]; then
mkdir -p ${FONTCONFIG_DIR}
cp ${FONTCONFIG_FILE} ${FONTCONFIG_DIR}
fi

# Set Antergos name in filesystem files
cp /etc/arch-release ${DESTDIR}/etc
Expand Down
7 changes: 7 additions & 0 deletions scripts/set-settings
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ if [[ ${DESKTOP} == 'gnome' ]];then
# Enable lockscreen extension
dbus-launch gsettings set org.gnome.shell enabled-extensions "['[email protected]']"

# Disable Terminal Bell
dbus-launch gsettings set org.gnome.desktop.wm.preferences audible-bell false

fi

if [[ ${DESKTOP} == 'cinnamon' ]];then
Expand Down Expand Up @@ -70,6 +73,10 @@ if [[ ${DESKTOP} == 'cinnamon' ]];then
# Set icon theme
dbus-launch gsettings set org.cinnamon.desktop.interface icon-theme "Faenza-Dark"
dbus-launch gsettings set org.gnome.desktop.interface icon-theme "Faenza-Dark"

# Disable Terminal Bell
dbus-launch gsettings set org.cinnamon.desktop.wm.preferences audible-bell false
dbus-launch gsettings set org.gnome.desktop.wm.preferences audible-bell false

fi

Expand Down
14 changes: 13 additions & 1 deletion scripts/testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@
previous="/tmp/dev-setup"
uefi="/sys/firmware/efi"
vbox_chk="$(hwinfo --gfxcard | grep -o -m 1 "VirtualBox")"
notify="$1"
notify_user () {
if [[ "${notify}" = "-n" ]]; then
notify-send -a "Cnchi" -i /usr/share/cnchi/data/antergos-icon.png "$1"
fi
}

# Check if this is the first time we are executed.
if ! [ -f "${previous}" ]; then
touch ${previous};
# Find the best mirrors (fastest and latest)
notify_user "Selecting the best mirrors..."
echo "Selecting the best mirrors..."
echo "Testing Arch mirrors..."
reflector -p http -l 30 -f 5 --save /etc/pacman.d/mirrorlist;
Expand All @@ -18,6 +25,7 @@ if ! [ -f "${previous}" ]; then
cp /tmp/antergos-mirrorlist /etc/pacman.d/
echo "Done."
# Install any packages that haven't been added to the iso yet but are needed.
notify_user "Installing missing packages..."
echo "Installing missing packages..."
# Check if system is UEFI boot.
if [ -d "${uefi}" ]; then
Expand All @@ -38,6 +46,7 @@ if ! [ -f "${previous}" ]; then
echo "Removing existing Cnchi..."
rm -R /usr/share/cnchi;
cd /usr/share;
notify_user "Getting latest version of Cnchi from testing branch..."
echo "Getting latest version of Cnchi from testing branch..."
# Check commandline arguments to choose repo
if [ "$1" = "-d" ] || [ "$1" = "--dev-repo" ]; then
Expand All @@ -48,18 +57,21 @@ if ! [ -f "${previous}" ]; then
cd /usr/share/cnchi

else
echo "Previous testing setup detected, skipping downloads"
notify_user "Previous testing setup detected, skipping downloads..."
echo "Previous testing setup detected, skipping downloads..."
echo "Verifying that nothing is mounted from a previous install attempt."
umount -lf /install/boot >/dev/null 2&>1
umount -lf /install >/dev/null 2&>1
# Check for changes on github since last time script was executed
# Update Cnchi with latest testing code
notify_user "Getting latest version of Cnchi from testing branch..."
echo "Getting latest version of Cnchi from testing branch..."
cd /usr/share/cnchi
git pull origin master;
fi

# Start Cnchi with appropriate options
notify_user "Starting Cnchi..."
echo "Starting Cnchi..."
# Are we using an alternate PKG cache?
# TODO Remove this nonsense and use proper command argument processing
Expand Down

0 comments on commit 9b0bd87

Please sign in to comment.