diff --git a/.github/workflows/dev-desktop-builds.yml b/.github/workflows/dev-desktop-builds.yml deleted file mode 100644 index 652bd58..0000000 --- a/.github/workflows/dev-desktop-builds.yml +++ /dev/null @@ -1,137 +0,0 @@ -name: "dev-desktop-builds" - -on: - push: - branches: [ master, main ] - pull_request: - branches: [ master, main ] - paths-ignore: - - "Translations/*" - - "installer/*.pot" - - "installer/po/*" - -env: - GODOT_VERSION: 3.2.3 - GODOT_VERSION_MAC: 3.2.2 - EXPORT_NAME: CozyPixelStudio - -jobs: - export-windows: - name: Windows Export 🗔 - runs-on: ubuntu-latest - container: - image: docker://barichello/godot-ci:3.2.3 - steps: - - name: Setup WINE and rcedit 🍷 - run: | - dpkg --add-architecture i386 && apt-get update && apt-get install -y wine-stable && apt-get install -y wine32 - chown root:root -R ~ - wget https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe - mkdir -v -p ~/.local/share/rcedit - mv rcedit-x64.exe ~/.local/share/rcedit - godot -q - echo 'export/windows/wine = "/usr/bin/wine"' >> ~/.config/godot/editor_settings-3.tres - echo 'export/windows/rcedit = "/github/home/.local/share/rcedit/rcedit-x64.exe"' >> ~/.config/godot/editor_settings-3.tres - - name: Checkout 🛎️ - uses: actions/checkout@v1 - with: - submodules: true - - name: Setup 💻 - run: | - mkdir -v -p build/windows-64bit ~/.local/share/godot/templates - mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable - - name: Windows Build 🔧 - run: godot -v --export "Windows Desktop 64-bit" ./build/windows-64bit/$EXPORT_NAME.exe - - name: Copy pixelorama_data folder 📁 - run: | - cp -R ./pixelorama_data ./build/windows-64bit - rm ./build/windows-64bit/pixelorama_data/.gdignore - - name: Upload Artifact 🚀 - uses: actions/upload-artifact@v2 - with: - name: Windows-64bit - path: ./build/windows-64bit/ - retention-days: 14 - - export-linux: - name: Linux Export 🐧 - runs-on: ubuntu-latest - container: - image: docker://barichello/godot-ci:3.2.3 - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v1 - with: - submodules: true - - name: Setup 💻 - run: | - mkdir -v -p build/linux-64bit ~/.local/share/godot/templates - mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable - - name: Linux Build 🔧 - run: godot -v --export "Linux/X11 64-bit" ./build/linux-64bit/$EXPORT_NAME.x86_64 - - name: Give execute permission ☑️ - run: - chmod +x ./build/linux-64bit/$EXPORT_NAME.x86_64 - - name: Copy pixelorama_data folder 📁 - run: | - cp -R ./pixelorama_data ./build/linux-64bit - rm ./build/linux-64bit/pixelorama_data/.gdignore - - name: Create tar.gz archive 🗜️ - run: | - cd build - tar zcvf linux-64bit.tar.gz linux-64bit - - name: Upload Artifact 🚀 - uses: actions/upload-artifact@v2 - with: - name: Linux-64bit - path: ./build/linux-64bit.tar.gz - retention-days: 14 - - export-mac: - name: Mac Export 🍎 - runs-on: macos-latest - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v1 - with: - submodules: true - - name: Setup environment 🔧 - run: | - export GODOT_VERSION=3.2.2 - export EXPORT_NAME=CozyPixelStudio - - name: Download and extract export templates 💾 - run: | - mkdir -v -p ~/.local/share/godot/templates/${GODOT_VERSION_MAC}.stable - curl -O https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION_MAC}/Godot_v${GODOT_VERSION_MAC}-stable_export_templates.tpz - unzip -a Godot_v${GODOT_VERSION_MAC}-stable_export_templates.tpz - mv ./templates/* ~/.local/share/godot/templates/${GODOT_VERSION_MAC}.stable - - name: Download Godot headless binary 🤖 - run: | - curl -O https://huskee.cf/files/Godot_v${GODOT_VERSION_MAC}-stable_mac_headless.64.zip - unzip -a Godot_v${GODOT_VERSION_MAC}-stable_mac_headless.64.zip - - name: Setup 💻 - run: mkdir -v -p ./build/mac - - name: Mac Build 🔧 - run: | - chown runner ./Godot - chmod +x ./Godot - ./Godot -v --export "Mac OSX" ./build/mac/CozyPixelStudio.zip - - name: Make application executable 🔧 - run: | - unzip -a ./build/mac/CozyPixelStudio.zip -d ./build/mac - chmod +x ./build/mac/CozyPixelStudio.app/Contents/MacOS/CozyPixelStudio - rm ./build/mac/CozyPixelStudio.zip - - name: Fix application icon 🖼 - run: sips -s format icns ./build/mac/CozyPixelStudio.app/Contents/Resources/icon.icns --out ./build/mac/CozyPixelStudio.app/Contents/Resources/icon.icns - - name: Copy pixelorama_data folder 📁 - run: | - cp -R ./pixelorama_data ./build/mac/CozyPixelStudio.app/Contents/MacOS - rm ./build/mac/CozyPixelStudio.app/Contents/MacOS/pixelorama_data/.gdignore - - name: Create DMG archive 🔧 - run: hdiutil create -size 70m -srcfolder ./build/mac -volname CozyPixelStudio ./build/mac/CozyPixelStudio.dmg - - name: Upload Artifact 🚀 - uses: actions/upload-artifact@v2 - with: - name: Mac - path: ./build/mac/CozyPixelStudio.dmg - retention-days: 14 diff --git a/.github/workflows/dev-web.yml b/.github/workflows/dev-web.yml index c6d3495..22401f2 100644 --- a/.github/workflows/dev-web.yml +++ b/.github/workflows/dev-web.yml @@ -2,11 +2,11 @@ name: "dev-web" on: push: - branches: [ master ] + branches: [master, main] env: GODOT_VERSION: 3.2.3 - EXPORT_NAME: Pixelorama + EXPORT_NAME: CozyPixelStudio jobs: export-web: