Rebrand
This commit is contained in:
parent
33b1e5289a
commit
4b49c60ec8
20
README.md
20
README.md
@ -1,28 +1,20 @@
|
|||||||
# archfi
|
# archfi
|
||||||
|
|
||||||
Just a simple bash script wizard to install Arch Linux after you have booted on the official Arch Linux install media.
|
Just a simple bash script wizard to install Hyperbola after you have booted on the official Hyperbola install media.
|
||||||
|
|
||||||
With this script, you can install Arch Linux with two simple terminal commands.
|
With this script, you can install Hyperbola with two simple terminal commands.
|
||||||
|
|
||||||
This wizard is made to install minimum packages (Base, bootloader and optionally archdi).
|
This wizard is made to install minimum packages (Base, bootloader and optionally archdi).
|
||||||
|
|
||||||
At the end of this wizard, you can install or launch [archdi](https://github.com/MatMoul/archdi) (Arch Linux Desktop Install) to install and configure desktop packages.
|
|
||||||
|
|
||||||
You can watch my videos to see how to use it [here](https://www.youtube.com/playlist?list=PLytHgIKLV1caHlCrcTSkm5OF2WSVI1_Sq).
|
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
First, boot with the [last Arch Linux image](https://www.archlinux.org/download/) with a [bootable device](https://wiki.archlinux.org/index.php/USB_flash_installation_media).
|
First, boot with the [last Hyperbola image](https://www.hyperbola.info/download/) with a [bootable device](https://wiki.hyperbola.info/doku.php?id=en:guide:beginners).
|
||||||
|
|
||||||
Then make sure you have Internet connection on the Arch iso. If you have a wireless connection the `wifi-menu` command might be useful to you. You can also read the [Network configuration](https://wiki.archlinux.org/index.php/Network_configuration) from the Arch Linux guide for more detailed instructions.
|
Then make sure you have Internet connection on the HyperISO. If you have a wireless connection the `wifi-menu` command might be useful to you. You can also read the [Network configuration](https://wiki.archlinux.org/index.php/Network_configuration) from the Hyperbola guide for more detailed instructions.
|
||||||
|
|
||||||
Then download the script with from the command line:
|
Then download the script with from the command line:
|
||||||
|
|
||||||
wget archfi.sf.net/archfi
|
wget tinyurl.com/hyperfi
|
||||||
|
|
||||||
If SourceForge is down, use this instead:
|
|
||||||
|
|
||||||
wget matmoul.github.io/archfi
|
|
||||||
|
|
||||||
Finally, launch the script:
|
Finally, launch the script:
|
||||||
|
|
||||||
@ -42,7 +34,7 @@ You can find a sample custom package list file in the samples folder.
|
|||||||
|
|
||||||
You can test your script with this command :
|
You can test your script with this command :
|
||||||
|
|
||||||
sh archfi -t {githubusername} {branchname}
|
sh archfi -t {codebergusername} {branchname}
|
||||||
|
|
||||||
Example :
|
Example :
|
||||||
|
|
||||||
|
111
makerelease
111
makerelease
@ -1,111 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
prjname=archfi
|
|
||||||
version=$(date +"%Y.%m.%d.%H.%M.%S")
|
|
||||||
branch=$(git rev-parse --abbrev-ref HEAD)
|
|
||||||
|
|
||||||
|
|
||||||
ssh -T git@github.com
|
|
||||||
if [ ! "$?" = "1" ]; then
|
|
||||||
echo "No Github ssh key loaded exiting..."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
scp "matmoul@web.sourceforge.net:/home/frs/project/$prjname/release/2018.09.04.01.26.38/README.txt" /dev/null
|
|
||||||
|
|
||||||
if [ ! "$?" = "0" ]; then
|
|
||||||
echo "No Sourceforge ssh key loaded exiting..."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
clear
|
|
||||||
read -p "Current branch is $branch. Continue ? (y/N)" choice
|
|
||||||
case "$choice" in
|
|
||||||
n|N|'' )
|
|
||||||
echo "cancel build !"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
y|Y ) echo "Begin Build Release...";;
|
|
||||||
* )
|
|
||||||
echo "cancel build !"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
echo "Building version $version..."
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "Finalise archfi script..."
|
|
||||||
sed -i /apptitle=/c\apptitle=\""Arch Linux Fast Install (archfi) - Version: $version (GPLv3)"\" archfi
|
|
||||||
sed -i /baseurl=https://raw.githubusercontent.com/c\baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master archfi
|
|
||||||
|
|
||||||
echo "Make last commit..."
|
|
||||||
git commit -a -m "New Release : $version"
|
|
||||||
|
|
||||||
if [ ! "$branch" = "master" ]; then
|
|
||||||
echo "Merge branch $branch to master..."
|
|
||||||
git checkout master
|
|
||||||
git pull
|
|
||||||
git merge $branch
|
|
||||||
|
|
||||||
read -p "Delete branch $branch ? (y/N)" choice
|
|
||||||
case "$choice" in
|
|
||||||
y|Y )
|
|
||||||
git branch -D $branch
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
read -p "Push release ? (Y/n)" choice
|
|
||||||
case "$choice" in
|
|
||||||
n|N ) exit 1;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
git checkout master
|
|
||||||
echo "Push release..."
|
|
||||||
git push
|
|
||||||
|
|
||||||
|
|
||||||
read -p "Publish to server ? (Y/n)" choice
|
|
||||||
case "$choice" in
|
|
||||||
n|N ) exit 1;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo "Create index.html..."
|
|
||||||
fle=$(cat archfi)
|
|
||||||
git checkout gh-pages
|
|
||||||
git pull
|
|
||||||
echo "$fle" > index.html
|
|
||||||
chmod 640 index.html
|
|
||||||
git commit -a -m "New Release : $version"
|
|
||||||
echo "Push index.html..."
|
|
||||||
git push
|
|
||||||
|
|
||||||
git checkout master
|
|
||||||
#Sourceforge :
|
|
||||||
|
|
||||||
targetpath=.build/$version
|
|
||||||
mkdir -p $targetpath
|
|
||||||
cp -R * $targetpath
|
|
||||||
|
|
||||||
echo "Finalise archfi script..."
|
|
||||||
sed -i "/baseurl=https:\/\/raw.githubusercontent.com\/MatMoul\/archfi/c\baseurl=http://downloads.sourceforge.net/project/archfi/release/$version" $targetpath/archfi
|
|
||||||
|
|
||||||
echo "Publish release..."
|
|
||||||
scp -r $targetpath matmoul@web.sourceforge.net:/home/frs/project/$prjname/release/
|
|
||||||
|
|
||||||
echo "Update redirect page..."
|
|
||||||
pubfile=.build/index.php
|
|
||||||
echo "<?php" > $pubfile
|
|
||||||
echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/$version/$prjname\");" >> $pubfile
|
|
||||||
echo "exit;" >> $pubfile
|
|
||||||
echo "?>" >> $pubfile
|
|
||||||
scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/index.php
|
|
||||||
|
|
||||||
rm -R .build
|
|
||||||
|
|
||||||
if [ ! "$branch" = "master" ]; then
|
|
||||||
git checkout $branch
|
|
||||||
git merge master
|
|
||||||
git push
|
|
||||||
fi
|
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# How to use :
|
# How to use :
|
||||||
# Store your own file on a web server
|
# Store your own file on a web server
|
||||||
# Launch archfi with :
|
# Launch hyperfi with :
|
||||||
# archfi -cpl url_of_the_file
|
# archfi -cpl url_of_the_file
|
||||||
|
|
||||||
# Some packages :
|
# Some packages :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user