Changeset 694


Ignore:
Timestamp:
Aug 5, 2025, 8:30:33 PM (18 hours ago)
Author:
chronos
Message:
  • Modified: Snap package updated with music support.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/1.3.8/Install/snap/snapcraft.yaml

    r687 r694  
    1313  * High DPI and scaling support
    1414  * Multi monitor support
     15  * In-game music
    1516  * And much more
    1617confinement: strict
     
    2324  LD_LIBRARY_PATH: $SNAP_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
    2425  PULSE_SERVER: unix:/run/user/1000/pulse/native
     26  ALWAYS_USE_PULSEAUDIO: '1'
    2527
    2628layout:
    2729  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox:
    2830    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox
    29 
     31  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib:
     32    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
     33  /usr/share/alsa:
     34    bind: $SNAP/usr/share/alsa
    3035parts:
     36  alsa-mixin:
     37    plugin: dump
     38    source: https://github.com/diddlesnaps/snapcraft-alsa.git
     39    source-subdir: snapcraft-assets
     40    build-packages:
     41      - libasound2-dev
     42    stage-packages:
     43      - libasound2
     44      - libasound2-plugins
     45      - yad
     46    stage:
     47      # restrict to only audio-related files - you need to ensure
     48      # that gtk3 is staged for yad to work correctly, to prompt
     49      # users to connect the alsa plug or proceed with pulseaudio.
     50      #
     51      # This helps prevent symbol conflicts in situations where
     52      # you're using a non-default library, such as those that the
     53      # gnome-3-34 extension for core18 provides.
     54      - etc/asound.conf
     55      - snap/command-chain/alsa-launch
     56      - usr/bin/yad*
     57      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
     58      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libasound*
     59      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libdnsfile*
     60      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libFLAC*
     61      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjack*
     62      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libpulse*
     63      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libsamplerate*
     64      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libspeex*
     65      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvorbis*
     66      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
    3167  c-evo:
    3268    plugin: nil
    3369    source: .
    3470    source-type: local
    35     after: [lazarus]
     71    after: [lazarus, alsa-mixin]
    3672    stage-packages:
    3773    - sox
     
    3975    - libsox-fmt-pulse
    4076    - libpulse0
     77    - libsndfile1
     78    - libportaudio2
     79    - libxmp4
     80    - libasound2
     81    - libasound2-plugins
    4182    # Autodetected dependencies
    4283    - libatk1.0-0
     
    75116      mv AI/StdAI/libstdai.so AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so
    76117      lazbuild --build-mode=Release Integrated.lpi
    77       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    78       install -s -m 755 c-evo $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    79       install -m 644 Language.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    80       install -m 644 Language2.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    81       install -m 644 Fonts.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    82       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
    83       install -m 755 Install/deb/c-evo.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
    84       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
    85       install -m 644 Install/deb/c-evo.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
    86       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
    87       install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/c-evo.png
    88       install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevo.png
    89       install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevomap.png
    90       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
    91       install -m 644 AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
    92       install -m 644 AI/StdAI/StdAI.ai.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
    93       install -m 644 AI/StdAI/StdAI.png $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     118      install -Dm755 c-evo -t $SNAPCRAFT_PART_INSTALL/usr/bin
     119      install -Dm644 Language.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     120      install -Dm644 Language2.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     121      install -Dm644 Fonts.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     122      install -Dm644 Install/deb/c-evo.desktop -t $SNAPCRAFT_PART_INSTALL/usr/share/applications
     123      install -Dm644 Install/deb/c-evo.xml -t $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
     124      install -Dm644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/c-evo.png
     125      install -Dm644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevo.png
     126      install -Dm644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevomap.png
     127      install -Dm644 AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     128      install -Dm644 AI/StdAI/StdAI.ai.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     129      install -Dm644 AI/StdAI/StdAI.png -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
    94130      cp -r Graphics $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    95131      cp -r Help $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     
    124160apps:
    125161  c-evo:
    126     command: usr/share/c-evo/c-evo
     162    command-chain: ["snap/command-chain/alsa-launch"]
     163    command: usr/bin/c-evo
    127164    desktop: usr/share/applications/c-evo.desktop
    128165    plugs:
     
    131168      - desktop
    132169      - x11
     170      - alsa
  • trunk/Install/snap/snapcraft.yaml

    r682 r694  
    1313  * High DPI and scaling support
    1414  * Multi monitor support
     15  * In-game music
    1516  * And much more
    1617confinement: strict
     
    2324  LD_LIBRARY_PATH: $SNAP_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
    2425  PULSE_SERVER: unix:/run/user/1000/pulse/native
     26  ALWAYS_USE_PULSEAUDIO: '1'
    2527
    2628layout:
    2729  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox:
    2830    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox
    29 
     31  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib:
     32    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
     33  /usr/share/alsa:
     34    bind: $SNAP/usr/share/alsa
    3035parts:
     36  alsa-mixin:
     37    plugin: dump
     38    source: https://github.com/diddlesnaps/snapcraft-alsa.git
     39    source-subdir: snapcraft-assets
     40    build-packages:
     41      - libasound2-dev
     42    stage-packages:
     43      - libasound2
     44      - libasound2-plugins
     45      - yad
     46    stage:
     47      # restrict to only audio-related files - you need to ensure
     48      # that gtk3 is staged for yad to work correctly, to prompt
     49      # users to connect the alsa plug or proceed with pulseaudio.
     50      #
     51      # This helps prevent symbol conflicts in situations where
     52      # you're using a non-default library, such as those that the
     53      # gnome-3-34 extension for core18 provides.
     54      - etc/asound.conf
     55      - snap/command-chain/alsa-launch
     56      - usr/bin/yad*
     57      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
     58      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libasound*
     59      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libdnsfile*
     60      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libFLAC*
     61      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjack*
     62      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libpulse*
     63      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libsamplerate*
     64      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libspeex*
     65      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvorbis*
     66      - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
    3167  c-evo:
    3268    plugin: nil
    3369    source: .
    3470    source-type: local
    35     after: [lazarus]
     71    after: [lazarus, alsa-mixin]
    3672    stage-packages:
    3773    - sox
     
    3975    - libsox-fmt-pulse
    4076    - libpulse0
     77    - libsndfile1
     78    - libportaudio2
     79    - libxmp4
     80    - libasound2
     81    - libasound2-plugins
    4182    # Autodetected dependencies
    4283    - libatk1.0-0
     
    75116      mv AI/StdAI/libstdai.so AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so
    76117      lazbuild --build-mode=Release Integrated.lpi
    77       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    78       install -s -m 755 c-evo $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    79       install -m 644 Language.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    80       install -m 644 Language2.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    81       install -m 644 Fonts.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    82       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
    83       install -m 755 Install/deb/c-evo.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
    84       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
    85       install -m 644 Install/deb/c-evo.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
    86       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
    87       install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/c-evo.png
    88       install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevo.png
    89       install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevomap.png
    90       install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
    91       install -m 644 AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
    92       install -m 644 AI/StdAI/StdAI.ai.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
    93       install -m 644 AI/StdAI/StdAI.png $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     118      install -Dm755 c-evo -t $SNAPCRAFT_PART_INSTALL/usr/bin
     119      install -Dm644 Language.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     120      install -Dm644 Language2.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     121      install -Dm644 Fonts.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     122      install -Dm644 Install/deb/c-evo.desktop -t $SNAPCRAFT_PART_INSTALL/usr/share/applications
     123      install -Dm644 Install/deb/c-evo.xml -t $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
     124      install -Dm644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/c-evo.png
     125      install -Dm644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevo.png
     126      install -Dm644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevomap.png
     127      install -Dm644 AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     128      install -Dm644 AI/StdAI/StdAI.ai.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     129      install -Dm644 AI/StdAI/StdAI.png -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
    94130      cp -r Graphics $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    95131      cp -r Help $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     
    115151    - libgtk2.0-dev
    116152    override-build: |
    117       wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.6/lazarus-project_3.6.0-0_amd64.deb
    118       wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.6/fpc-laz_3.2.2-210709_amd64.deb
    119       wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.6/fpc-src_3.2.2-210709_amd64.deb
    120       apt install ./lazarus-project_3.6.0-0_amd64.deb ./fpc-laz_3.2.2-210709_amd64.deb ./fpc-src_3.2.2-210709_amd64.deb
     153      wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.2/lazarus-project_4.2.0-0_amd64.deb
     154      wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.2/fpc-laz_3.2.2-210709_amd64.deb
     155      wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.2/fpc-src_3.2.2-210709_amd64.deb
     156      apt install ./lazarus-project_4.2.0-0_amd64.deb ./fpc-laz_3.2.2-210709_amd64.deb ./fpc-src_3.2.2-210709_amd64.deb
    121157    stage: [-*]
    122158    prime: [-*]
     
    124160apps:
    125161  c-evo:
    126     command: usr/share/c-evo/c-evo
     162    command-chain: ["snap/command-chain/alsa-launch"]
     163    command: usr/bin/c-evo
    127164    desktop: usr/share/applications/c-evo.desktop
    128165    plugs:
     
    131168      - desktop
    132169      - x11
     170      - alsa
Note: See TracChangeset for help on using the changeset viewer.