You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
alcom: 1.1.6
This commit is contained in:
+14
-32
@@ -668,55 +668,37 @@ if {${name} eq ${subport}} {
|
||||
}
|
||||
|
||||
subport alcom {
|
||||
github.setup anatawa12 vrc-get 1.1.5 gui-v
|
||||
github.setup anatawa12 vrc-get 1.1.6 gui-v
|
||||
github.tarball_from archive
|
||||
revision 0
|
||||
description ALternative (VRChat) creator COMpanion
|
||||
long_description [string toupper ${subport}] or ${description} is a fast open-source alternative of\
|
||||
VRChat Creator Companion (VCC)
|
||||
|
||||
checksums ${name}-${version}${extract.suffix} \
|
||||
rmd160 be80570644dd0f9db563887c534e14c8a81cddb6 \
|
||||
sha256 c9f3c0f79e0aa425a2b4a86cb9f85f8890e93c23010c5e280b11df4343736b94 \
|
||||
size 5734411
|
||||
checksums rmd160 12ca0bbd71f3252b547abceab17fc0f999b1f2e0 \
|
||||
sha256 0e71d84b931f436e38169e146d19f13c4b8491ad5b60b04dead7c4016654cc1b \
|
||||
size 5788485
|
||||
|
||||
depends_build-append path:bin/node:nodejs24 \
|
||||
path:bin/npm:npm11
|
||||
|
||||
platform darwin {
|
||||
if {${os.major} < 20} {
|
||||
# 10.15-
|
||||
depends_build-replace \
|
||||
path:bin/node:nodejs24 \
|
||||
path:bin/node:nodejs18
|
||||
depends_build-replace \
|
||||
path:bin/npm:npm11 \
|
||||
path:bin/npm:npm9
|
||||
}
|
||||
}
|
||||
|
||||
post-patch {
|
||||
reinplace "/\"appimage\"/d" ${worksrcpath}/vrc-get-gui/Tauri.toml
|
||||
reinplace "/\"deb\"/d" ${worksrcpath}/vrc-get-gui/Tauri.toml
|
||||
reinplace "/\"rpm\"/d" ${worksrcpath}/vrc-get-gui/Tauri.toml
|
||||
reinplace "/\"nsis\"/d" ${worksrcpath}/vrc-get-gui/Tauri.toml
|
||||
reinplace "/\"dmg\"/d" ${worksrcpath}/vrc-get-gui/Tauri.toml
|
||||
reinplace "/\".*\.ico\"/d" ${worksrcpath}/vrc-get-gui/Tauri.toml
|
||||
reinplace "/createUpdaterArtifacts/d" ${worksrcpath}/vrc-get-gui/Tauri.toml
|
||||
reinplace "s|10.13.0|${macosx_deployment_target}|" ${worksrcpath}/xtask/src/bundle_alcom/app.rs
|
||||
}
|
||||
|
||||
pre-build {
|
||||
system -W ${worksrcpath}/vrc-get-gui "${prefix}/bin/npm --verbose run build"
|
||||
}
|
||||
set shared_args "
|
||||
--target [cargo.rust_platform]
|
||||
"
|
||||
|
||||
build.dir ${worksrcpath}/vrc-get-gui
|
||||
build.cmd ${prefix}/bin/npm --verbose run tauri build
|
||||
build.cmd ${prefix}/bin/cargo xtask build-alcom
|
||||
build.pre_args
|
||||
build.args-append -- \
|
||||
--verbose \
|
||||
--target [cargo.rust_platform] \
|
||||
-c '{"build":{"beforeBuildCommand":null},"bundle":{"macOS":{"signingIdentity":"-","minimumSystemVersion":"${macosx_deployment_target}"}}}'
|
||||
build.args-append {*}$shared_args \
|
||||
--release
|
||||
|
||||
destroot {
|
||||
system -W ${worksrcpath}/vrc-get-gui "${prefix}/bin/cargo xtask bundle-alcom [join ${shared_args}] --release --bundles app"
|
||||
system -W ${worksrcpath}/vrc-get-gui "${prefix}/bin/cargo xtask sign-alcom-app [join ${shared_args}] --identity -"
|
||||
copy ${worksrcpath}/target/[cargo.rust_platform]/release/bundle/macos/[string toupper ${subport}].app ${destroot}${applications_dir}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user