added install.sh
This commit is contained in:
parent
9548de24e8
commit
0f63fd77dd
2 changed files with 17 additions and 4 deletions
|
@ -19,14 +19,14 @@ much easier task when organising podcasts.
|
||||||
Very simple install:
|
Very simple install:
|
||||||
```git clone this repo
|
```git clone this repo
|
||||||
cd podcatch
|
cd podcatch
|
||||||
go build
|
chmod +x install.sh
|
||||||
chmod +x ./podcatch
|
./install.sh
|
||||||
./podcatch
|
podcatch
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
Settings and Podcasts lists are automatically created in the `~/.podcatch/` directory.
|
Settings and Podcasts lists are automatically created in the `~/.podcatch/` directory.
|
||||||
These files are in the TOML format, and the "podcasts.toml" file uses a `map[string]Podcast` interface.
|
These files are in the TOML format, and the `podcasts.toml` file uses a `map[string]Podcast` interface.
|
||||||
The automatically created files contain some example podcasts from which you should be able to understand the
|
The automatically created files contain some example podcasts from which you should be able to understand the
|
||||||
required layout.
|
required layout.
|
||||||
|
|
||||||
|
|
13
install.sh
Executable file
13
install.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
echo "Base directory is : $BASEDIR"
|
||||||
|
echo "Building..."
|
||||||
|
go build
|
||||||
|
echo "Built."
|
||||||
|
echo "Making executable..."
|
||||||
|
chmod +x $BASEDIR/podcatch
|
||||||
|
echo "Made."
|
||||||
|
echo "Copying to /usr/bin"
|
||||||
|
sudo cp $BASEDIR/podcatch /usr/bin/podcatch
|
||||||
|
echo "Copied."
|
||||||
|
echo "You should now be able to run podcatch as just 'podcatch'"
|
Loading…
Reference in a new issue