Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sophie Herold
gajim
Commits
7db4d6c0
Commit
7db4d6c0
authored
8 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Update files for appveyor Windows build
parent
dba7210b
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
appveyor.yml
+25
-17
25 additions, 17 deletions
appveyor.yml
build.bat
+10
-9
10 additions, 9 deletions
build.bat
download.ps1
+1
-1
1 addition, 1 deletion
download.ps1
setup_win32.py
+4
-17
4 additions, 17 deletions
setup_win32.py
src/gajim.py
+1
-1
1 addition, 1 deletion
src/gajim.py
with
41 additions
and
45 deletions
appveyor.yml
+
25
−
17
View file @
7db4d6c0
...
...
@@ -4,38 +4,46 @@ environment:
-
PYTHON
:
"
C:
\\
Python34"
branches
:
only
:
-
master
clone_depth
:
1
install
:
-
h
g clone http://
hg
.gajim.org/gajim-plugins c:\projects\gajim-plugins
-
h
g clone http://
hg
.gajim.org/python-nbxmpp c:\projects\python-nbxmpp
-
g
it
clone
--depth=1 --branch=gtk3
http
s
://
dev
.gajim.org/gajim
/gajim
-plugins
.git
c:\projects\gajim-plugins
-
g
it
clone http
s
://
dev
.gajim.org/
gajim/
python-nbxmpp
.git
c:\projects\python-nbxmpp
-
cd c:\\projects\\python-nbxmpp\\
-
python setup.py install
-
"
%PYTHON%
\\
python
.exe
setup.py
install
"
-
ps
:
c:\\projects\\gajim\\download.ps1
-
set PATH=C:\\MinGW\\bin;C:\\Program Files (x86)\\gettext-iconv\\bin;%PATH%
-
"
%PYTHON%
\\
python.exe
-m
pip
install
--upgrade
pip"
-
"
%PYTHON%
\\
python.exe
-m
pip
install
protobuf"
-
ps
:
Add-Content C:\Python34\Lib\site-packages\google\__init__.py " "
-
"
%PYTHON%
\\
python.exe
-m
pip
install
pycrypto"
-
"
%PYTHON%
\\
python.exe
-m
pip
install
pycrypto
dome
"
-
"
%PYTHON%
\\
python.exe
-m
pip
install
cx_freeze"
-
"
%PYTHON%
\\
python.exe
-m
pip
install
pypiwin32"
-
"
%PYTHON%
\\
python.exe
-m
pip
install
pyopenssl"
-
"
%PYTHON%
\\
python.exe
-m
pip
install
--global-option=build_ext
--global-option
--compiler=mingw32
python-axolotl"
-
"
%PYTHON%
\\
python.exe
-m
pip
install
--no-dependencies
python-axolotl"
-
"
%PYTHON%
\\
python.exe
-m
pip
install
--global-option=build_ext
--global-option
--compiler=mingw32
python-axolotl-curve25519"
-
cd c:\\projects\\gajim\\
-
build.bat
-
xcopy . ..\gajim_built /e /i
-
cd ..
-
cd gajim_built
-
xcopy ..\gajim-plugins\plugin_installer plugins\plugin_installer /e /i
build
:
off
-
cmd
:
for %%l in (po\*.po) do mkdir po\%%~nl & mkdir po\%%~nl\LC_MESSAGES & msgfmt -o po\%%~nl\LC_MESSAGES\gajim.mo %%l
# artifacts:
# - path: gajim_built\Gajim.exe
# - name: MyApp
-
"
%PYTHON%
\\
python.exe
setup_win32.py
build_exe"
-
move build\exe.win32-3.4 .
-
rmdir build
-
rename exe.win32-3.4 build
on_finish
:
-
ps
:
Push-AppveyorArtifact gajim_built\Gajim.exe -FileName "Gajim-16.10.1-$($env:APPVEYOR_REPO_COMMIT).exe"
-
ps
:
'
&
"C:\Program
Files
(x86)\NSIS\makensis.exe"
gajim.nsi'
build
:
off
#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.
\ No newline at end of file
on_finish
:
-
ps
:
Push-AppveyorArtifact Gajim.exe -FileName "Gajim-16.10.1-$($env:APPVEYOR_REPO_COMMIT).exe"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build.bat
+
10
−
9
View file @
7db4d6c0
rmdir
/S /Q
gajim_built
rmdir
/S /Q
..\
gajim_built
mkdir
gajim_built
hg
archive
gajim_built
xcopy
..\gajim
-plugins
\plugin_installer
gajim_built
\plugins\plugin_installer
/e /i
xcopy
. ..\gajim_built
/e /i
cd
..
cd
gajim_built
xcopy
..\gajim
-plugins
\plugin_installer
plugins
\plugin_installer
/e /i
rem copy C:\Python34\Lib\site-packages\gnome\msgfmt.exe gajim_built
rem copy C:\Windows\System32\msvcr100.dll gajim_built
cd
gajim_built
for
%%l
in
(
po
\
*
.po
)
do
mkdir
po
\
%%~nl
&
mkdir
po
\
%%~nl
\LC_MESSAGES
&
msgfmt
-o
po
\
%%~nl
\LC_MESSAGES\gajim.mo
%%l
c
:\python34\python.exe
setup_win32
.py
build_exe
"
c:\python34\python.exe
"
setup_win32
.py
build_exe
move
build
\exe.win32
-
3
.4 .
rmdir
build
rename
exe
.win32
-
3
.4
build
rem REM for snarl plugin
rem xcopy ..\win32com build\win32com /e /i
"C:\Program Files (x86)\NSIS\makensis"
gajim
.nsi
cd
..
\ No newline at end of file
cd
..
pause
\ No newline at end of file
This diff is collapsed.
Click to expand it.
download.ps1
+
1
−
1
View file @
7db4d6c0
# Download the file to a specific location
$clnt
=
new-object
System.Net.WebClient
$url
=
"http://
www.funkroom.net/files
/site-packages.zip"
$url
=
"http
s
://
gajim.org/downloads/snap/win/build
/site-packages.zip"
$file
=
"c:\site-packages.zip"
$clnt
.
DownloadFile
(
$url
,
$file
)
...
...
This diff is collapsed.
Click to expand it.
setup_win32.py
+
4
−
17
View file @
7db4d6c0
...
...
@@ -94,15 +94,6 @@ GTK_LIBS = {
'
gupnp-dlna-2.0
'
,
'
icons
'
,
'
ssl
'
,
'
themes
'
,
'
xml
'
]
}
# share 'gobject-introspection-1.0'
# , 'enchant' 'gir-1.0',
#lib 'gobject-introspection'
# 'aspell-0.60', 'enchant', 'gst-plugins-bad',
# Create the list of includes as cx_freeze likes
INCLUDE_FILES
=
[]
for
dll
in
MISSING_DLL
:
...
...
@@ -124,18 +115,13 @@ for language in next(os.walk('po'))[1]:
OPTIONS
=
{
'
build_exe
'
:
{
'
compressed
'
:
False
,
'
includes
'
:
[
'
gi
'
,
'
Crypto.PublicKey.DSA
'
,
'
Crypto.Hash.HMAC
'
,
'
numbers
'
,
'
win32com.client
'
,
'
win32com.server
'
,
'
cryptography
'
,
'
pkg_resources
'
],
'
includes
'
:
[
'
gi
'
,
'
numbers
'
,
'
win32com.client
'
,
'
win32com.server
'
],
'
packages
'
:
[
'
gi
'
,
'
cffi
'
,
'
cryptography
'
,
'
google
'
,
'
axolotl
'
,
'
pkg_resources
'
],
'
base
'
:
'
Win32GUI
'
,
'
pkg_resources
'
,
'
Crypto
'
,
'
pycparser
'
],
'
include_files
'
:
INCLUDE_FILES
,
}
}
setup
(
name
=
'
Gajim
'
,
version
=
'
0.16.10
'
,
...
...
@@ -145,5 +131,6 @@ setup(
download_url
=
'
http://gajim.org/downloads.php
'
,
license
=
'
GPL
'
,
options
=
OPTIONS
,
executables
=
[
Executable
(
'
src/gajim.py
'
,
icon
=
'
data/pixmaps/gajim.ico
'
)],
executables
=
[
Executable
(
'
src/gajim.py
'
,
icon
=
'
data/pixmaps/gajim.ico
'
,
base
=
'
Win32GUI
'
)],
)
This diff is collapsed.
Click to expand it.
src/gajim.py
+
1
−
1
View file @
7db4d6c0
...
...
@@ -498,7 +498,7 @@ atexit.register(on_exit)
from
gui_interface
import
Interface
if
__name__
==
'
__main__
'
:
if
__name__
.
endswith
(
'
__main__
'
)
:
def
sigint_cb
(
num
,
stack
):
sys
.
exit
(
5
)
# ^C exits the application normally to delete pid file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment