Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
schorschii committed May 10, 2024
1 parent 8668f48 commit 4027eb7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion installer/debian/oco-agent/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: OCO-Agent
Version: 1.0.3
Version: 1.0.4
Section: base
Priority: optional
Architecture: all
Expand Down
2 changes: 1 addition & 1 deletion installer/macos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
TARGET_DIRECTORY="$SCRIPTPATH/target"
PRODUCT="OCO Agent"
VERSION="1.0.3"
VERSION="1.0.4"
TARGET_FILENAME="oco-agent.pkg"
DEVELOPER_ID_INSTALLER_CERT_NAME="Developer ID Installer: Georg Sieber (96G8V7UY3M)"
#DEVELOPER_ACCOUNT_USERNAME=""
Expand Down
2 changes: 1 addition & 1 deletion installer/windows/oco-agent.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "OCO Agent"
#define MyAppVersion "1.0.3"
#define MyAppVersion "1.0.4"
#define MyAppPublisher "Sieber Systems"
#define MyAppURL "https://github.com/schorschii/OCO-Agent"
#define MyAppSupportURL "https://sieber.systems/"
Expand Down
2 changes: 1 addition & 1 deletion oco_agent/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__title__ = 'OCO-Agent'
__author__ = 'Georg Sieber'
__license__ = 'GPL-3.0'
__version__ = '1.0.3'
__version__ = '1.0.4'
__website__ = 'https://github.com/schorschii/OCO-Agent'

__all__ = [__author__, __license__, __version__]
9 changes: 5 additions & 4 deletions oco_agent/oco_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

try:
import pip_system_certs.wrapt_requests
except ImportError: pass
except ImportError:
print('ATTENTION: unable to load pip_system_certs.wrapt_requests')

import signal
import threading
Expand Down Expand Up @@ -43,7 +44,7 @@

##### CONSTANTS #####

AGENT_VERSION = '1.0.3'
from .__init__ import __version__
EXECUTABLE_PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
DEFAULT_CONFIG_PATH = EXECUTABLE_PATH+'/oco-agent.ini'
LOCKFILE_PATH = tempfile.gettempdir()+'/oco-agent.lock'
Expand Down Expand Up @@ -961,7 +962,7 @@ def mainloop(args):
# send initial request
print(logtime()+'Sending agent_hello...')
request = jsonRequest('oco.agent.hello', {
'agent_version': AGENT_VERSION,
'agent_version': __version__,
'networks': getNics(),
'services': getServiceStatus(),
'uptime': getUptime()
Expand Down Expand Up @@ -1000,7 +1001,7 @@ def mainloop(args):
print(logtime()+'Updating inventory data...')
jsonRequest('oco.agent.update', {
'hostname': getHostname(),
'agent_version': AGENT_VERSION,
'agent_version': __version__,
'os': getOs(),
'os_version': getOsVersion(),
'os_license': getIsActivated(),
Expand Down

0 comments on commit 4027eb7

Please sign in to comment.