Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
53eb5994
Commit
53eb5994
authored
Jul 23, 2013
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't hardcode appcast URL
parent
8ffa5ca7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
settings.py
blink/configuration/settings.py
+1
-0
windows.py
blink/update/windows.py
+8
-6
No files found.
blink/configuration/settings.py
View file @
53eb5994
...
@@ -65,6 +65,7 @@ class RTPSettingsExtension(RTPSettings):
...
@@ -65,6 +65,7 @@ class RTPSettingsExtension(RTPSettings):
class
ServerSettings
(
SettingsGroup
):
class
ServerSettings
(
SettingsGroup
):
enrollment_url
=
Setting
(
type
=
HTTPURL
,
default
=
"https://blink.sipthor.net/enrollment.phtml"
)
enrollment_url
=
Setting
(
type
=
HTTPURL
,
default
=
"https://blink.sipthor.net/enrollment.phtml"
)
updater_url
=
Setting
(
type
=
HTTPURL
,
default
=
"https://blink.sipthor.net/BlinkQTAppcast.xml"
)
class
SoundSettings
(
SettingsGroup
):
class
SoundSettings
(
SettingsGroup
):
...
...
blink/update/windows.py
View file @
53eb5994
...
@@ -3,11 +3,13 @@
...
@@ -3,11 +3,13 @@
import
os
import
os
from
blink.update
import
IUpdateManager
from
ctypes
import
c_char_p
,
c_wchar_p
,
CDLL
from
ctypes
import
c_char_p
,
c_wchar_p
,
CDLL
from
ctypes.util
import
find_library
from
ctypes.util
import
find_library
from
sipsimple.configuration.settings
import
SIPSimpleSettings
from
zope.interface
import
implements
from
zope.interface
import
implements
from
blink.update
import
IUpdateManager
def
library_locations
(
name
):
def
library_locations
(
name
):
library_name
=
'
%
s.dll'
%
(
name
)
library_name
=
'
%
s.dll'
%
(
name
)
...
@@ -60,13 +62,13 @@ class UpdateManager(object):
...
@@ -60,13 +62,13 @@ class UpdateManager(object):
implements
(
IUpdateManager
)
implements
(
IUpdateManager
)
def
__init__
(
self
):
from
blink
import
__version__
winsparkle_set_appcast_url
(
'https://blink.sipthor.net/BlinkQTAppcast.xml'
)
winsparkle_set_app_details
(
'AG Projects'
,
'Blink'
,
__version__
)
def
initialize
(
self
):
def
initialize
(
self
):
"""Initialize WinSparkle library, it will try to fetch updates in the background"""
"""Initialize WinSparkle library, it will try to fetch updates in the background"""
from
blink
import
Blink
,
__version__
application
=
Blink
()
settings
=
SIPSimpleSettings
()
winsparkle_set_appcast_url
(
settings
.
server
.
updater_url
)
winsparkle_set_app_details
(
application
.
organizationName
(),
application
.
applicationName
(),
__version__
)
winsparkle_init
()
winsparkle_init
()
def
shutdown
(
self
):
def
shutdown
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment