[no ci] Change icon, temporary fix for dylib loading (#328)

* Move build directory

* Move build folder

* Move the build folder

* Update Mac OS icon

* Use snapshot icon

* Use icon file

* Temporary fix for Mac OS dylib loading

* Update require.lua

* Update require.lua

* Update require.lua

* Update require.lua

Remember to squash this.

* “简化”require模块对于OS X环境的处理方法

Co-authored-by: MrZ626 <1046101471@qq.com>
This commit is contained in:
Trebor Huang
2021-09-24 21:00:03 +08:00
committed by GitHub
parent 0b1357c2ee
commit 7b141a5eaa
4 changed files with 20 additions and 14 deletions

View File

@@ -178,9 +178,9 @@ jobs:
- name: Pack Techmino
run: |
rm -rf ./squashfs-root/love ./squashfs-root/love.desktop ./squashfs-root/love.svg ./squashfs-root/.DirIcon
mv ./build/Linux/love.template ./squashfs-root/love
mv ./build/Linux/Techmino.desktop.template ./squashfs-root/Techmino.desktop
mv ./build/Linux/icon.png ./squashfs-root/icon.png
mv ./.github/build/Linux/love.template ./squashfs-root/love
mv ./.github/build/Linux/Techmino.desktop.template ./squashfs-root/Techmino.desktop
mv ./.github/build/Linux/icon.png ./squashfs-root/icon.png
cp ./squashfs-root/icon.png ./squashfs-root/.DirIcon
chmod 777 ./squashfs-root/love
mkdir -p ./squashfs-root/usr/share/Techmino
@@ -380,6 +380,7 @@ jobs:
python3 ./.github/workflows/updateVersion.py -T macOS -N $(lua ./.github/workflows/getVersion.lua -name)
mv ./Techmino.love ./Techmino.app/Contents/Resources
mv ./CCloader.dylib ./Techmino.app/Contents/Frameworks
mv ./.github/build/macOS/icon.icns ./Techmino.app/Contents/Resources/iconfile.icns
- name: Codesign executable
# In secrets:
# - MACOS_CERTIFICATE: the *.p12 Developer ID Certificate, encoded in base64