Compare commits

...

6 Commits

Author SHA1 Message Date
Kevin Granade df08e8d32e Add osx build to release workflow (#48784) 2021-05-07 21:08:34 -07:00
Maleclypse 17c44e4784 [Magiclysm] Endless Whiskey adjustment (#48789)
* magic whiskey
2021-05-07 19:27:04 -07:00
LaVeyanFiend 94c1904fe5 No charcoal alchemy (#48788) 2021-05-07 19:20:30 -07:00
Kevin Granade 551cdfc891 Merge pull request #48783 from BrettDong/dmgdist
Fix "make dmgdist" error on native macOS
2021-05-07 19:12:39 -07:00
Binrui Dong fa32e5e489 Update dmgback.png path in dmgsettings.py 2021-05-07 20:18:51 -04:00
Binrui Dong 83bd11a2ff Convert Info.plist to binary format when making dmg on macOS 2021-05-07 20:18:51 -04:00
6 changed files with 52 additions and 16 deletions
+39 -9
View File
@@ -38,35 +38,49 @@ jobs:
- name: Windows Tiles x64
mxe: x86_64
artifact: windows-tiles-x64
os: windows
os: ubuntu-latest
ext: zip
content: application/zip
- name: Windows Tiles x32
mxe: i686
artifact: windows-tiles-x32
os: windows
os: ubuntu-latest
ext: zip
content: application/zip
- name: Linux Tiles x64
os: linux
os: ubuntu-latest
mxe: none
tiles: 1
artifact: linux-tiles-x64
ext: tar.gz
content: application/gzip
- name: linux-curses-x64
os: linux
os: ubuntu-latest
mxe: none
tiles: 0
artifact: linux-curses-x64
ext: tar.gz
content: application/gzip
- name: osx-curses-x64
os: macos-10.15
mxe: none
tiles: 0
artifact: osx-curses-x64
ext: dmg
content: application/x-apple-diskimage
- name: osx-tiles-x64
os: macos-10.15
mxe: none
tiles: 1
artifact: osx-tiles-x64
ext: dmg
content: application/x-apple-diskimage
name: ${{ matrix.name }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies (windows)
if: matrix.os == 'windows'
if: matrix.mxe != 'none'
run: |
sudo apt install astyle autoconf automake autopoint bash bison bzip2 cmake flex gettext git g++ gperf intltool \
libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl lzip make mingw-w64 openssl \
@@ -80,13 +94,18 @@ jobs:
sudo apt update
sudo apt install mxe-{i686,x86-64}-w64-mingw32.static-{sdl2,sdl2-ttf,sdl2-image,sdl2-mixer,gettext}
- name: Install dependencies (Linux)
if: matrix.os == 'linux'
if: runner.os == 'Linux' && matrix.mxe == 'none'
run: |
sudo apt-get update
sudo apt-get install libncursesw5-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev \
libsdl2-mixer-dev libpulse-dev ccache gettext parallel
- name: Install dependencies (mac)
if: runner.os == 'macOS'
run: |
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ccache parallel
pip3 install dmgbuild biplist
- name: Build CDDA (linux)
if: matrix.os == 'linux'
if: runner.os == 'Linux' && matrix.mxe == 'none'
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
@@ -97,7 +116,7 @@ jobs:
make -j$((`nproc`+0)) TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 bindist
mv cataclysmdda-0.E.tar.gz cdda-${{ matrix.artifact }}-b${{ github.run_number }}.tar.gz
- name: Build CDDA (windows)
if: matrix.os == 'windows'
if: matrix.mxe != 'none'
env:
PLATFORM: /usr/lib/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static-
run: |
@@ -109,6 +128,17 @@ jobs:
EOL
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 bindist
mv cataclysmdda-0.E.zip cdda-${{ matrix.artifact }}-b${{ github.run_number }}.zip
- name: Build CDDA (osx)
if: runner.os == 'macOS'
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ github.run_number }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
make -j3 TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 dmgdist
mv Cataclysm.dmg cdda-${{ matrix.artifact }}-b${{ github.run_number }}.dmg
- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
+1
View File
@@ -1154,6 +1154,7 @@ ifdef OSXCROSS
dmg dmg Cataclysm-uncompressed.dmg Cataclysm.dmg
rm Cataclysm-uncompressed.dmg
else
plutil -convert binary1 Cataclysm.app/Contents/Info.plist
dmgbuild -s build-data/osx/dmgsettings.py "Cataclysm DDA" Cataclysm.dmg
endif
+1 -1
View File
@@ -82,7 +82,7 @@ icon_locations = {
#
# Other color components may be expressed either in the range 0 to 1, or
# as percentages (e.g. 60% is equivalent to 0.6).
background = 'data/osx/dmgback.png'
background = 'build-data/osx/dmgback.png'
show_status_bar = False
show_tab_view = False
+1 -1
View File
@@ -666,7 +666,7 @@
"volume": "15 ml",
"price": 0,
"price_postapoc": 10,
"material": [ "plastic" ],
"material": [ "charcoal" ],
"symbol": ",",
"color": "dark_gray",
"initial_charges": 100,
@@ -23,6 +23,14 @@
"rot_spawn_chance": 80,
"//": "Alchemically speaking, I see this egg as having the elements of Growth, Stone, and Egg. Growth would make things grow faster, the simplest example being a magical liquid fertilizer. Stone would be a defensive element, used in creating something like a potion of stoneskin. Egg would be interesting though. What if instead of being imbibed there were potions that instead functioned similarly to the sourdough items, or the blob vehicle parts, in that they take a gestation period and then you could activate them and have a new item pop out. Creatures sure but especially biomancers could have temporarily-lived tools, weapons, and armor."
},
{
"type": "COMESTIBLE",
"id": "magic_whiskey",
"name": { "str_sp": "whiskey" },
"copy-from": "whiskey",
"price": 0,
"price_postapoc": 0
},
{
"type": "COMESTIBLE",
"id": "egg_owlbear",
@@ -116,15 +116,12 @@
"category": "clothing",
"relic_data": { "charge_info": { "recharge_type": "periodic", "time": "24 h", "regenerate_ammo": true } },
"use_action": {
"target": "whiskey",
"target": "magic_whiskey",
"msg": "You open the flask and discover it full of sweet, sweet, whiskey!",
"container": "mflask_hip_whiskey",
"target_charges": 7,
"moves": 50,
"type": "delayed_transform",
"transform_age": 14400,
"not_ready_msg": "The flask isn't done refilling yet.",
"//": "24 hours"
"type": "transform"
}
},
{