Skip to content

Commit 10283ed

Browse files
committed
smh, autoversion should finally work
1 parent 6a7371c commit 10283ed

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
echo "Deploying..."
44

5+
python remove_autoversion.py
6+
57
cd builds
68

79
# Zip em and roll em into a tar ball

remove_autoversion.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Remove autoversion.inc file from builds
2+
# We don't want modified plugins to have our build number
3+
import os
4+
5+
6+
def main():
7+
print('Removing autoversion.inc files...')
8+
9+
builds = ['full', 'bhop', 'bhoplite', 'surf', 'deathrun']
10+
11+
for b in builds:
12+
try:
13+
os.remove('builds/' + b + '/addons/sourcemod/scripting/include/influx/autoversion.inc')
14+
except Exception as e:
15+
print('Failed to remove autoversion.inc!')
16+
print(e)
17+
18+
19+
if __name__ == '__main__':
20+
main()
21+

smbuild

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,6 @@ fulllist = pluginlist.getPluginNameList()
188188
for p in fulllist:
189189
Plugin(source='addons/sourcemod/scripting/'+p+'.sp')
190190

191-
# Remove auto version
192-
try:
193-
os.remove('addons/sourcemod/scripting/include/influx/autoversion.inc')
194-
except Exception:
195-
pass
196191

197192
Package(
198193
name='full',

0 commit comments

Comments
 (0)