Commit graph

50 commits

Author SHA1 Message Date
Dominik Riebeling
72904569e3 Remove outdated theme editor deploy script.
This doesn't work anymore since the switch to cmake.

Change-Id: I3a829cc58412f2e1415c6c9defeb552137757214
2022-02-28 20:37:32 +01:00
Dominik Riebeling
fa1e6cc5bf rbutil: Replace deploy with tarball script.
The old deployment script doesn't work anymore due to the change to
cmake, and since we build the distribution packages (zip / dmg /
AppImage) with cmake directly there's not much need left for the old
deployment.

Change-Id: Ide20887c5bc2e22aabbfb47374d70529609fbc3c
2022-02-28 20:37:23 +01:00
Dominik Riebeling
65d0867a25 rbutil: Add option to langstat to pass git hash.
Don't always operate on the remote head, instead default to the local
HEAD, and allow passing a hash to use for calculating statistics.

Change-Id: I420308e66769689c1dfac56e19058b097a0533a2
2021-01-02 21:31:20 +01:00
Dominik Riebeling
ff7e8b4293 deploy: Update sources list for Rockbox Utility.
Change-Id: If23a2ee8056b124500e385a9d973dfbddbc32e02
2020-11-22 18:30:01 +01:00
Dominik Riebeling
a9c7bc7c9a deploy: Simplify retrieving CPU count.
The multiprocessing module is part of Python since 2.6, so no need to do
an extra check here.

Change-Id: If1c223edf9f04b6de8fdf757ba00f79897783a53
2020-07-26 09:56:20 +02:00
Solomon Peachy
dcdf2713f6 Python3-related fixes in some of our scripts
Change-Id: I8acbe43e3f27e51159a7a78fcc361476d7406cbb
2020-07-09 14:39:27 +00:00
Dominik Riebeling
9b4e6ef7b3 deploy: Support Python3.
Change-Id: Iff92a1f6a918f7da80f26f1a9ca02a6f6f082b7d
2020-06-13 20:11:53 +02:00
Dominik Riebeling
440791105a deploy: Fix various style issues.
Fix various pylint issues and some python3 compatibility.

Change-Id: I2c35ccc5ad2d0902c229f9de57912cf6d5a83ece
2020-06-13 20:11:48 +02:00
Dominik Riebeling
aefbc13e19 deploy: Add missing Windows system libraries to known list.
Building with mxe failed due to the toolchain (and Qt5) introducing
dependencies to system libraries we don't know about. Commit 3083abeb95
thus ignored the actual problem. Revert that and instead add the missing
system libraries to the list of known libraries.

Change-Id: I29ac296765e580b751d3d906d58ab563d05efde2
2020-06-13 20:11:43 +02:00
Franklin Wei
3083abeb95 deploy-rbutil.py: allow zipball building to proceed if no DLLs are found
This helps with MXE static builds, which were failing because no DLLs were
found.

Change-Id: Id3fcdf9a7682a9ecb6a5892415077bf16e8b24cb
2019-11-14 19:42:06 -05:00
Franklin Wei
b2fb095ab5 rbutil: include nwztools source in release tarball
Change-Id: Ic6d998441fb532a914eea2838fdc0d196f930bb2
2019-11-10 19:56:50 -05:00
Cástor Muñoz
2ae94318c6 update deploy.py to recognize and use Qt5
Change-Id: Ied8c9d153a34bd8b689a34e45708262cede5348d
2016-01-17 18:38:28 +01:00
Dominik Riebeling
8360937ac2 Append build date when building dev version from local foler.
Change-Id: I1172cb0c4910f1d49b6a5d1125a809491a5aba9c
2015-06-07 22:19:54 +02:00
Dominik Riebeling
e5320303cc Make revision handling work when building from local folder.
Change-Id: I8e6cc0eb8a5bff722bf5278ffa7685436c3d846a
2015-05-30 18:40:40 +02:00
Dominik Riebeling
5f5d7f608a Fix path creation for zip file names in current folder.
When building in the current tree (i.e. buildfolder ending up as '.') creating
the filename to use in the zip file stripped all '.' characters. Use a
different way to create the filename to avoid this.

Change-Id: I139c404d5e83a8bcb028a9a22b125f238911e405
2015-05-30 18:21:32 +02:00
Dominik Riebeling
2af2a1253c Update findversion for change version.h format.
version.h doesn't store the version number as string anymore. Update
findversion to use the individual values instead.

Change-Id: I6bf0fdd4420d41279b44cffd22b42febbfc778ce
2015-05-30 17:59:50 +02:00
Dominik Riebeling
6b3c4beba4 Rework langstat.
- Generally improve code and make it compliant to PEP8.
- Make it work with Python3 as well.

Change-Id: I9e99999c59dc501664c36dd38fcb85fb60d6d9e6
2013-06-09 16:54:59 +02:00
Frank Gevaerts
3e4be68f8b Make the tarball generation tool handle spaces in filenames
<insert opinion on such filenames here>

Change-Id: Ie1b5fac97eea93c9ac934ffb8bf6c0d9a0559339
2013-03-05 22:37:27 +01:00
Dominik Riebeling
972b8945b8 Fix a typo.
Change-Id: I358add5df8971bc3eab4c4cf71d2e792e51979d1
2012-05-14 23:02:21 +02:00
Dominik Riebeling
91cf4a7768 gitscraper: Provide way to get timestamps for files.
When scraping files from the repository allow passing an additional list of
files for which the timestamp of the last change is retrieved. Since this is
slow (the log needs to be traversed, since a blob doesn't know about commits
its referenced by) only specified files get this retrieved.

Change-Id: I61a2ef812ac18ffb5898c01ce070046d4ca00a15
2012-04-29 11:48:07 +02:00
Sean Bartell
f40bfc9267 Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97
Reviewed-on: http://gerrit.rockbox.org/137
Reviewed-by: Nils Wallménius <nils@rockbox.org>
Tested-by: Nils Wallménius <nils@rockbox.org>
2012-04-25 22:13:20 +02:00
Dominik Riebeling
885db72b8b gitscraper: support Python3.
Make gitscraper and tarball script work with both Python 2 and Python 3. Tested
with 2.7 and 3.2.

Change-Id: I31b2580660d764d013bca6fe59d5663ae9f7f5aa
2012-04-22 21:34:01 +02:00
Dominik Riebeling
2aae745458 Add new tarball generation script.
The old script depended on svn. An earlier version of this script has already
been used in the 3.11. branch.

Change-Id: Id03abb8f7bd005ede343243194c4453f0b2e8943
2012-04-12 21:15:49 +02:00
Dominik Riebeling
e9d5f6cb61 gitscraper: support compressing the sources as 7z.
The Rockbox source code uses 7z for its archive for size reasons. Add support
for compressing as 7z (by calling the 7z command line utility) so it can be
used for generating Rockbox source archives.

Change-Id: I26097ff61ff183e5ddc07b2c4473f90dc0700178
2012-04-12 21:08:38 +02:00
Dominik Riebeling
06662985cb Correctly insert build ID.
Change-Id: I35a85ffd78bd0a56a31d6ba0abbd6102727155d4
2012-03-06 22:06:40 +01:00
Dominik Riebeling
7d2c7b83b5 Rockbox Utility: add "revision" information back.
Add a revision-like information and make deploy.py replace it with the git
hash.

Change-Id: Ic88ad0b2af255e76a7129a6a5cf52663b868fd32
2012-03-06 21:45:54 +01:00
Dominik Riebeling
ee1f54ca01 Append "64bit" only on 64bit binary.
Don't rely on the build host having the same bitsize as the created binary.
Fixes building a 32bit binary getting a "64bit" postfix when built on a 64bit
Linux.

Change-Id: I2aa61dee82beddd60ebfc8e227551ea49d769664
2012-02-26 17:11:36 +01:00
Dominik Riebeling
64f71e66b2 When writing data from repository open file as binary.
Windows requires files to be explicitly opened as binaries, otherwise it will
perform line ending translations. We really don't want the OS to mess with
that.

Change-Id: Id56de354b7ad0e5b056540755f7108456f3263ed
2012-02-06 00:14:25 +01:00
Dominik Riebeling
001eb3b211 Update deployment script for git.
First and rather rough adjustment for git. There are still a lot of places
referring to svn, and various functionality might be broken which needs fixing
later.

Change-Id: Ia628f06e99f527e01f131ce674746fba77d97d23
2012-02-05 22:00:57 +01:00
Dominik Riebeling
909b96fa70 Python module to get (some) files from the repository.
With git it's not possible to simply export a set of paths from the server
directly. This module offers a similar functionality, but requires a local
clone of the repository. It calls git directly for maximum portability.

This is a prerequisite to making the deployment script used for Rockbox Utility
work again.

Change-Id: I1aca8ddd40d16b6268c1d6a2fc23ac59e964c3c6
2012-02-05 21:26:57 +01:00
Dominik Riebeling
1391710466 Rockbox Utility: add missing folder to deployment script.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31584 a1c6a512-1295-4272-9138-f99709370657
2012-01-05 10:51:57 +00:00
Dominik Riebeling
b458d33190 Rockbox Utility now requires voice-corrections.txt.
Add to deployment configuration to make it work again.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30809 a1c6a512-1295-4272-9138-f99709370657
2011-10-19 21:50:01 +00:00
Dominik Riebeling
e79fca992c Remove use of which.py module.
Implement simple which functionality. This has less features than which.py but
is sufficient, and removing an external dependency is always good.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30315 a1c6a512-1295-4272-9138-f99709370657
2011-08-14 18:57:49 +00:00
Dominik Riebeling
9b7b653f85 Move various logo files to a single location.
Introduce a new folder that will hold the original files for various variants
of the Rockbox logo. The "Rb" variant of the icon (used in the Rockbox Utility
icon on Windows) has been missing from svn.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29960 a1c6a512-1295-4272-9138-f99709370657
2011-06-04 20:31:11 +00:00
Dominik Riebeling
7d4616ea40 Fix BUILDID getting appended even if not set.
Rename some stuff to make it clearer.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29836 a1c6a512-1295-4272-9138-f99709370657
2011-05-08 19:34:03 +00:00
Dominik Riebeling
6ba552cc5d deploy.py: support adding a build id.
Add support for passing and injecting a build ID to the souces prior to
compiling. Allows to easily create rebuilds of Rockbox Utility without creating
false positives on update detection.
Fix a typo in version.h. Thanks to sideral for noting.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29825 a1c6a512-1295-4272-9138-f99709370657
2011-05-05 17:19:00 +00:00
Dominik Riebeling
8c768a544b Rockbox Utility deployment: insert revision into OS X' Info.plist too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29800 a1c6a512-1295-4272-9138-f99709370657
2011-04-30 20:25:19 +00:00
Dominik Riebeling
d905754bdf Correct revision replacement string gotten replaced by svn itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29766 a1c6a512-1295-4272-9138-f99709370657
2011-04-22 20:20:40 +00:00
Dominik Riebeling
2c297760df deploy.py: insert version number into sources.
After downloading the sources insert the number of the revision checked out
into the code. Results in the Rockbox Utility about dialog showing the actual
revision instead of the one of the last change to version.h. Only applied when
building from trunk for now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29684 a1c6a512-1295-4272-9138-f99709370657
2011-04-06 20:17:29 +00:00
Dominik Riebeling
8059347300 Fix cross compiling on Linux: Python uses "linux2" as platform name.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29539 a1c6a512-1295-4272-9138-f99709370657
2011-03-07 21:22:57 +00:00
Dominik Riebeling
4cc2cc430c Fix a potential variable problem. Change some messages a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29534 a1c6a512-1295-4272-9138-f99709370657
2011-03-06 17:37:27 +00:00
Dominik Riebeling
43a40caa37 Support cross compiling for Windows target.
Restructure deploy.py by moving the platform decisions out of the calling
scripts. This is necessary when cross compiling since this is only decided in
deploy.py. Add support for passing a cross compiler prefix on the command line
and always build targeting Windows if set.

Correct some whitespace errors and long lines while at it.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29531 a1c6a512-1295-4272-9138-f99709370657
2011-03-06 00:04:26 +00:00
Dominik Riebeling
ee3fc61a48 Use more than one core in deployment script.
Try to detect the number of cores in the system and use that value for make -j.
Gives a noticable speedup depending on the system (OS X doesn't seem to benefit
from it).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28859 a1c6a512-1295-4272-9138-f99709370657
2010-12-19 20:10:22 +00:00
Dominik Riebeling
9dfae97884 Fix matching of DLL name in deployment script.
Allow DLL filenames to contain the plus sign. Fixes libstdc++-6.dll not
getting recognized as DLL.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28150 a1c6a512-1295-4272-9138-f99709370657
2010-09-23 16:47:23 +00:00
Dominik Riebeling
839f777aaa Remove duplicated license file.
Remove the plain text license file below the rbutilqt folder and move
the HTML variant to the top-level docs folder. It's all GPL, so there's
no need to duplicate those files.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27996 a1c6a512-1295-4272-9138-f99709370657
2010-09-04 18:50:12 +00:00
Dominik Riebeling
4756a77b47 Support resolving of DLLs when running on Windows.
Resolve the DLLs required by the built executable and try to add the required
DLL files that are not recognized as system libraries to the resulting zip /
NSIS installer. This means that it's now possible to easily build both Theme
Editor and Rockbox Utility as dynamically linked binary without the risk of
missing required DLLs in the package. The major advantage of this is that
it's not necessary anymore to have a statically built Qt installation for
building releases. The drawback is that the created binaries will rely on
additional DLL files, so it's no longer a single-run binary.

Binary release of Rockbox Utility should still be statically build.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27945 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 17:51:53 +00:00
Dominik Riebeling
77b682571f deploy.py: Figure installer filename from NSIS script.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27764 a1c6a512-1295-4272-9138-f99709370657
2010-08-09 17:44:03 +00:00
Dominik Riebeling
93c81dcd26 Support running NSIS from deployment script.
This requires a few workarounds since NSIS expects files in the source
folder but the build scripts run out-of-tree. Only added for Theme
Editor for now, since Rockbox Utility doesn't have a NSIS script yet
(and an installer for Rockbox Utility might not be that useful).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27759 a1c6a512-1295-4272-9138-f99709370657
2010-08-08 20:56:58 +00:00
Dominik Riebeling
85f84060c4 Correct OS X post-build bundle copying.
Make copying files to the bundle work when building other applications than
Rockbox Utility by replacing a hardcoded workaround.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27606 a1c6a512-1295-4272-9138-f99709370657
2010-07-28 21:05:16 +00:00
Dominik Riebeling
05e5fbf5e2 Add deployment script for Theme Editor.
Also move scripts to utils folder, in preparation of merging rbutil and
utils folders.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27600 a1c6a512-1295-4272-9138-f99709370657
2010-07-28 18:46:20 +00:00