mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-11 17:29:44 +00:00
ci: enable all publish targets but universal mac build
This commit is contained in:
parent
b33c5e5b59
commit
4a91523caa
14
.github/workflows/desktop-publish.yml
vendored
14
.github/workflows/desktop-publish.yml
vendored
@ -2,8 +2,6 @@ name: "Desktop App Publish"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "ci/release"
|
||||
tags:
|
||||
- "v*"
|
||||
workflow_dispatch:
|
||||
@ -16,15 +14,15 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
# - platform: "macos-14" # for Arm based macs (M1 and above).
|
||||
# args: "--target aarch64-apple-darwin --verbose"
|
||||
# - platform: "macos-13" # for Intel based macs.
|
||||
# args: "--target x86_64-apple-darwin --verbose"
|
||||
- platform: "macos-14" # for Arm based macs (M1 and above).
|
||||
args: "--target aarch64-apple-darwin --verbose"
|
||||
- platform: "macos-13" # for Intel based macs.
|
||||
args: "--target x86_64-apple-darwin --verbose"
|
||||
# Universal Build no longer supported after adding openssl, which is not cross-compilable.
|
||||
# - platform: "macos-14" # for Both Arm and Intel based macs.
|
||||
# args: "--target universal-apple-darwin --verbose"
|
||||
# - platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
|
||||
# args: "--verbose"
|
||||
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
|
||||
args: "--verbose"
|
||||
- platform: "windows-latest"
|
||||
args: "--verbose"
|
||||
|
||||
|
@ -23,18 +23,20 @@ if (process.platform === "win32") {
|
||||
for (const dir of fs.readdirSync(programFilesDir)) {
|
||||
console.log(dir)
|
||||
}
|
||||
const joinedOpenSSLDir = path.join(programFilesDir, "OpenSSL")
|
||||
console.log(`joinedOpenSSLDir (${joinedOpenSSLDir}) exists: `, fs.existsSync(joinedOpenSSLDir))
|
||||
console.log("joinedOpenSSLDir Directory Contents:")
|
||||
for (const dir of fs.readdirSync(joinedOpenSSLDir)) {
|
||||
console.log(dir)
|
||||
}
|
||||
|
||||
console.log(`OPENSSL_DIR (${OPENSSL_DIR}) Exists: ${fs.existsSync(OPENSSL_DIR)}`)
|
||||
console.log(
|
||||
`OPENSSL_INCLUDE_DIR (${OPENSSL_INCLUDE_DIR}) Exists: ${fs.existsSync(OPENSSL_INCLUDE_DIR)}`
|
||||
)
|
||||
console.log(`OPENSSL_LIB_DIR (${OPENSSL_LIB_DIR}) Exists: ${fs.existsSync(OPENSSL_LIB_DIR)}`)
|
||||
if (
|
||||
!fs.existsSync(OPENSSL_DIR) ||
|
||||
!fs.existsSync(OPENSSL_INCLUDE_DIR) ||
|
||||
!fs.existsSync(OPENSSL_LIB_DIR)
|
||||
) {
|
||||
console.error("OPENSSL_DIR, OPENSSL_INCLUDE_DIR, or OPENSSL_LIB_DIR is not set")
|
||||
process.exit(1)
|
||||
}
|
||||
} else if (process.platform === "darwin") {
|
||||
if (OPENSSL_DIR) {
|
||||
if (fs.existsSync(OPENSSL_DIR)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user