cs16 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +0 -0
- package/package.json +2 -2
- 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.
|
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.
|
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="
|
8
|
-
zipped_file_url
|
9
|
-
file="
|
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 "
|
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 "
|
24
|
+
unzip "$zipped_file" -d "/tmp/"
|
25
25
|
wine "$file"
|
26
26
|
exit
|