Skip to content

Commit

Permalink
Debug deploy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
annulen committed Sep 15, 2020
1 parent 2828f08 commit df676e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-otter.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash -ex
git clone --depth 1 https://github.com/OtterBrowser/otter-browser.git
cd otter-browser
patch -p1 < ../deploy.patch
cd ..

mkdir otter-browser-build
cmake -Botter-browser-build -Hotter-browser -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$QTDIR $CMAKE_ARGS -G "$CMAKE_GENERATOR"
cmake --build otter-browser-build --config Release -j $HOST_N_CORES
Expand Down
13 changes: 13 additions & 0 deletions deploy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/packaging/deploy.py b/packaging/deploy.py
index 29c892a5d..b22473006 100755
--- a/packaging/deploy.py
+++ b/packaging/deploy.py
@@ -141,6 +141,8 @@ def deploy_windows(qt_path, source_path, build_path, target_path, extra_libs):
os.mkdir(target_installer_path)
shutil.copy(os.path.join(build_path, 'otter-browser.exe'), target_installer_path)
shutil.copy(os.path.join(source_path, 'COPYING'), target_installer_path)
+ print("~~~ COPYING {0} -> {1}".format(os.path.join(source_path, 'COPYING'), target_installer_path))
+ os.system("dir C:\Users\travis\build\qtwebkit\release-tests\otter-browser\packaging\otter-browser-packages\input")
deploy_locale(source_path, os.path.join(target_path, 'input'))
run_command([escape_windows_executable_path(windeployqt_command), os.path.join(target_path, r'input\otter-browser.exe')])

0 comments on commit df676e2

Please sign in to comment.