Skip to content

Commit

Permalink
ci: fix size
Browse files Browse the repository at this point in the history
Signed-off-by: aspel <[email protected]>
  • Loading branch information
aspel committed Nov 18, 2023
1 parent 69e4fa4 commit 3208a17
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
- uses: actions/checkout@v4
- run: make
- name: Package tar.xz archive
run: tar -cf - -C ${GITHUB_WORKSPACE}/PathOfBuilding $(ls -A ${GITHUB_WORKSPACE}"/PathOfBuilding") | xz -c > PathOfBuilding.linux.amd64.tar.xz
run: tar -cf - -C ${GITHUB_WORKSPACE}/linux $(ls -A ${GITHUB_WORKSPACE}"/linux") | xz -c > PathOfBuilding.linux.amd64.tar.xz
- name: Cheking GUI
env:
IMGUR_CLIENT_ID: ${{ secrets.IMGUR_CLIENT_ID }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
DISPLAY: :10
if: github.ref != 'refs/heads/master'
run: |
pushd ${GITHUB_WORKSPACE}/PathOfBuilding
pushd ${GITHUB_WORKSPACE}/linux
Xvfb :10 -screen 0 1024x768x24 &
sleep 15
./PathOfBuilding &
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Darwin: pob
echo "Finished $(OS_NAME)"

Linux: pob
meson setup --buildtype=release build
meson setup --buildtype=release --prefix=${DIR}/linux --bindir='' build
meson compile -C build
mv build/PathOfBuilding PathOfBuilding/
meson install -C build
echo "Finished $(OS_NAME)"

pob: clear tools_$(OS_NAME) load_pob luacurl
Expand Down
27 changes: 25 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ project('POB Frontend', 'cpp', default_options : ['cpp_std=c++17'])

qt5_dep = dependency('qt5', modules : ['Gui','Core','Widgets'])
lua_dep = dependency('luajit')
zlib_dep = dependency('zlib')

# NB on OSX you also need to invoke meson like so, because luajit:
# LDFLAGS="-pagezero_size 10000 -image_base 100000000" meson pobfrontend build
if build_machine.system() == 'darwin'
Expand All @@ -10,7 +12,7 @@ if build_machine.system() == 'darwin'
else
gl_dep = dependency('gl')
endif
zlib_dep = dependency('zlib')


# Import the extension module that knows how
# to invoke Qt tools.
Expand All @@ -29,11 +31,32 @@ else
install : true)
endif

exclude_dir = [
'.github',
'docs',
'tests',
]

exclude_file = [
'runtime-win32.zip',
'.busted',
'.gitattributes',
'.gitignore',
]

if build_machine.system() == 'darwin'
install_data('pobLogo.icns', install_dir : 'Contents/Resources')
install_data('Info.plist', install_dir : 'Contents')
install_data('pobWrapper.sh', install_dir : 'Contents/MacOS')
install_subdir('PathOfBuilding', install_dir : 'Contents/MacOS', strip_directory : true)
install_subdir('PathOfBuilding', install_dir : 'Contents/MacOS',
exclude_directories: exclude_dir,
exclude_files: exclude_file,
strip_directory : true)
install_subdir('Frameworks', install_dir: 'Contents')
meson.add_install_script('bash', '-xc', 'cd ${MESON_INSTALL_PREFIX}/Contents && dylibbundler --overwrite-dir --create-dir --bundle-deps --fix-file MacOS/lcurl.so')
else
install_subdir('PathOfBuilding', install_dir : '',
exclude_directories: exclude_dir,
exclude_files: exclude_file,
strip_directory : true)
endif

0 comments on commit 3208a17

Please sign in to comment.