Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6713463

Browse files
Version 0.1.2
1 parent 23b14ce commit 6713463

3 files changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,3 @@ jobs:
2929
files: |
3030
LICENSE.md
3131
bin/*
32-
33-
- name: Set as latest release
34-
uses: "marvinpinto/action-automatic-releases@latest"
35-
with:
36-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
37-
automatic_release_tag: "latest"
38-
prerelease: false
39-
title: "Latest Build"
40-
files: |
41-
LICENSE.md
42-
bin/*

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ func main() {
348348

349349
// Print information
350350
if version {
351-
os.Printf("", "Compactor version 0.1.1\n")
351+
os.Printf("", "Compactor version 0.1.2\n")
352352
return
353353
}
354354

355-
os.Printf(os.Purple, ":::| COMPACTOR - 0.1.1 |:::\n")
355+
os.Printf(os.Purple, ":::| COMPACTOR - 0.1.2 |:::\n")
356356
os.Printf(os.Notice, "[INFO] Files source folder is %s\n", options.Source.Path)
357357
os.Printf(os.Notice, "[INFO] Files destination folder is %s\n", options.Destination.Path)
358358

install.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
set -e
44
set -u
55

6-
echo "Installing compactor..."
6+
VERSION="v0.1.2"
7+
REPOSITORY="https://github.com/mateussouzaweb/compactor"
8+
BINARY="${REPOSITORY}/releases/download/${VERSION}/compactor"
9+
10+
echo "[INFO] Installing compactor and dependencies..."
711

812
# Install dependencies
913
if [[ $(node -v) == "" ]]; then
@@ -21,8 +25,7 @@ for i in "${p[@]}"; do
2125
done
2226

2327
# Install compactor
24-
REPOSITORY="https://github.com/mateussouzaweb/compactor/releases/download/latest"
25-
sudo wget $REPOSITORY/compactor -O /usr/local/bin/compactor
28+
sudo wget $BINARY -O /usr/local/bin/compactor
2629
sudo chmod +x /usr/local/bin/compactor
2730

28-
echo "Compactor installed!"
31+
echo "[INFO] Compactor ${VERSION} installed!"

0 commit comments

Comments
 (0)