overlook-csgo 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +0,0 @@
1
- namespace :proto do
2
- desc 'Update the generated proto'
3
- task :update do
4
- proto_version = '2.6.0'
5
-
6
- FileUtils.mkdir_p('./lib/proto/proto')
7
- FileUtils.mkdir_p('./lib/proto/compiled')
8
-
9
- base_url = "https://raw.githubusercontent.com/SteamRE/SteamKit/master/Resources/Protobufs/csgo/"
10
- protos = %w(cstrike15_gcmessages.proto cstrike15_usermessages.proto netmessages.proto steammessages.proto)
11
-
12
- Dir.chdir('./lib/proto/proto') do
13
- protos.each do |file|
14
- `curl -O #{base_url}/#{file}`
15
- end
16
-
17
- `curl -L https://github.com/google/protobuf/archive/v#{proto_version}.tar.gz -o protobuf.tar.gz`
18
- `rm -f protobuf.tar`
19
- `gunzip protobuf.tar.gz`
20
- `tar -xvzf protobuf.tar`
21
-
22
- protos.each do |file|
23
- `protoc --beefcake_out ../compiled -I . -I protobuf-#{proto_version}/src #{file}`
24
- end
25
- end
26
- end
27
- end