cs16 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +0 -0
  2. package/package.json +2 -2
  3. package/playcs16.sh +5 -5
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cs16",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Play Counter Strike 1.6 easily on ubuntu",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -24,6 +24,6 @@
24
24
  },
25
25
  "homepage": "https://github.com/PabloDinella/cs16#readme",
26
26
  "dependencies": {
27
- "shelljs": "^0.8.3"
27
+ "shelljs": "^0.8.5"
28
28
  }
29
29
  }
package/playcs16.sh CHANGED
@@ -4,9 +4,9 @@ if ! command -v wine; then
4
4
  sudo apt install wine-stable -y
5
5
  fi
6
6
 
7
- zipped_file="$HOME/Downloads/Counter-Strike1.6Portable-SITECS.zip"
8
- zipped_file_url="http://www.comoeconomizar.com.br/Counter-Strike1.6Portable-SITECS.zip"
9
- file="$HOME/Downloads/Counter-Strike 1.6 Portable.exe"
7
+ zipped_file="/tmp/Counter-Strike1.6Portable-SITECS.zip"
8
+ zipped_file_url=$(curl --silent https://www.sitecs.net/counter-strike-1-6-portable | grep -o "http.*Counter-Strike1.6Portable-SITECS.zip")
9
+ file="/tmp/Counter-Strike 1.6 Portable.exe"
10
10
 
11
11
  if [ -f "$file" ]; then
12
12
  wine "$file"
@@ -14,13 +14,13 @@ if [ -f "$file" ]; then
14
14
  fi
15
15
 
16
16
  if [ ! -f "$zipped_file" ]; then
17
- wget "$zipped_file_url" -P "$HOME/Downloads/"
17
+ wget "$zipped_file_url" -P "/tmp/"
18
18
  fi
19
19
 
20
20
  if ! command -v unzip; then
21
21
  sudo apt install unzip -y
22
22
  fi
23
23
 
24
- unzip "$zipped_file" -d "$HOME/Downloads/"
24
+ unzip "$zipped_file" -d "/tmp/"
25
25
  wine "$file"
26
26
  exit