-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
823 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: C/C++ AppImage | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-appimage: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'true' | ||
- name: install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev cmake squashfs-tools | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/libluajit-5.1.a /usr/lib/x86_64-linux-gnu/liblua5.1.a | ||
sudo ln -s /usr/include/luajit-2.1 /usr/include/lua | ||
- name: configure | ||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_APPDIR=1 | ||
- name: build | ||
run: cmake --build build -t install | ||
- name: Build AppImage | ||
uses: AppImageCrafters/build-appimage-action@fe2205a4d6056be47051f7b1b3811106e9814910 | ||
env: | ||
UPDATE_INFO: gh-releases-zsync|MihailRis|VoxelEngine-Cpp|latest|*x86_64.AppImage.zsync | ||
with: | ||
recipe: dev/AppImageBuilder.yml | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: AppImage | ||
path: './*.AppImage*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,7 @@ Debug/voxel_engine | |
.project | ||
.git | ||
/Default/ | ||
AppDir | ||
appimage-build/ | ||
|
||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
version: 1 | ||
AppDir: | ||
path: AppDir | ||
app_info: | ||
id: VoxelEngine | ||
name: VoxelEngine | ||
icon: VoxelEngine | ||
version: latest | ||
exec: usr/bin/VoxelEngine | ||
exec_args: --dir $HOME --res $APPDIR/usr/share/VoxelEngine/res $@ | ||
apt: | ||
arch: amd64 | ||
sources: | ||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | ||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' | ||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C' | ||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | ||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse | ||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | ||
include: | ||
- libbz2-1.0 | ||
- libexpat1 | ||
- libfam0 | ||
- libgcrypt20 | ||
- libglfw3 | ||
- libglew2.1 | ||
- libpng16-16 | ||
- libopenal1 | ||
- libopengl0 | ||
- libasound2 | ||
- libglx0 | ||
exclude: | ||
- hicolor-icon-theme | ||
- sound-theme-freedesktop | ||
- perl | ||
- perl-base | ||
- kwayland-data | ||
- libwacom2 | ||
- libasound2 | ||
- breeze | ||
- breeze-icon-theme | ||
- breeze-cursor-theme | ||
- kwin-style-breeze | ||
- kde-style-breeze | ||
- plasma-integration | ||
files: | ||
exclude: | ||
- usr/share/man | ||
- usr/share/doc/*/README.* | ||
- usr/share/doc/*/changelog.* | ||
- usr/share/doc/*/NEWS.* | ||
- usr/share/doc/*/TODO.* | ||
test: | ||
fedora: | ||
image: appimagecrafters/tests-env:fedora-30 | ||
command: ./AppRun | ||
use_host_x: true | ||
debian: | ||
image: appimagecrafters/tests-env:debian-stable | ||
command: ./AppRun | ||
use_host_x: true | ||
arch: | ||
image: appimagecrafters/tests-env:archlinux-latest | ||
command: ./AppRun | ||
use_host_x: true | ||
centos: | ||
image: appimagecrafters/tests-env:centos-7 | ||
command: ./AppRun | ||
use_host_x: true | ||
ubuntu: | ||
image: appimagecrafters/tests-env:ubuntu-xenial | ||
command: ./AppRun | ||
use_host_x: true | ||
AppImage: | ||
arch: x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Type=Application | ||
Name=VoxelEngine | ||
Comment=Minecraft-like game engine in C++ with OpenGL | ||
TryExec=VoxelEngine | ||
Exec=VoxelEngine | ||
Icon=VoxelEngine | ||
MimeType=image/x-foo; | ||
Categories=Game; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ | |
"pane", | ||
"pipe", | ||
"lightbulb", | ||
"torch", | ||
"wallpaper" | ||
"torch" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
function on_random_update(x, y, z) | ||
local dirtid = block_index('base:dirt'); | ||
if is_solid_at(x, y+1, z) then | ||
set_block(x, y, z, dirtid) | ||
else | ||
local grassblockid = block_index('base:grass_block') | ||
for lx=-1,1 do | ||
for ly=-1,1 do | ||
for lz=-1,1 do | ||
if get_block(x + lx, y + ly, z + lz) == dirtid then | ||
if not is_solid_at(x + lx, y + ly + 1, z + lz) then | ||
set_block(x + lx, y + ly, z + lz, grassblockid) | ||
return | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.