Skip to content

Commit

Permalink
snap
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
  • Loading branch information
audetto committed May 2, 2024
1 parent dad81dc commit 1bbc473
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
2 changes: 2 additions & 0 deletions snapcraft/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo snap install ./applewin_1.30.18.10_amd64.snap --dangerous --devmode
sudo snappy-debug
66 changes: 66 additions & 0 deletions snapcraft/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: applewin # you probably want to 'snapcraft register <name>'
base: core22 # the base snap is the execution environment for this snap
version: "1.30.18.10" # just for humans, typically '1.2+git' or '1.3.2'
summary: AppleWin Apple II emulator # 79 char long summary
description: |
Apple II emulator for Linux
# grade: devel # must be 'stable' to release into candidate/stable channels
# confinement: devmode # use 'strict' once you have the right plugs and slots

grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots

parts:
applewin-part:
plugin: cmake
source: https://github.com/audetto/AppleWin.git
source-type: git
source-branch: snapcraft
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SA2=ON
build-packages:
- cmake
- g++
- ninja-build
- pkg-config
- libyaml-dev
- libminizip-dev
- libboost-program-options-dev
- libsdl2-image-dev
- libsdl2-dev
- libgles-dev
- libpcap-dev
- libslirp-dev
# - qtbase5-dev
# - qtmultimedia5-dev
# - libqt5gamepad5-dev
# - libqt5multimedia5-plugins
# - libncurses-dev
# - libevdev-dev
stage-packages:
- libyaml-0-2
- libsdl2-2.0-0
- libsdl2-image-2.0-0
- libboost-program-options1.74.0
- libminizip1
- libpcap0.8
- libslirp0
- libgles2

apps:
applewin:
command: usr/bin/sa2
extensions:
- gnome
plugs:
- network
- network-bind
- audio-playback
- joystick
- home
- removable-media
- hardware-observe
- screen-inhibit-control
4 changes: 2 additions & 2 deletions source/frontends/sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ void run_sdl(int argc, const char * argv [])
{
std::cerr << std::fixed << std::setprecision(2);

sa2::printVideoInfo(std::cerr);
sa2::printAudioInfo(std::cerr);
// sa2::printVideoInfo(std::cerr);
// sa2::printAudioInfo(std::cerr);

common2::EmulatorOptions options;

Expand Down

0 comments on commit 1bbc473

Please sign in to comment.