ai/at
1
0

fix patch cmd

This commit is contained in:
2025-12-07 14:23:14 +09:00
parent 5b2255b3f6
commit 0564f93ad8
7 changed files with 42 additions and 12 deletions

View File

@@ -37,8 +37,8 @@ index 231447b4f..33c51cc0a 100644
export const webLinks = { export const webLinks = {
- tos: `https://bsky.social/about/support/tos`, - tos: `https://bsky.social/about/support/tos`,
- privacy: `https://bsky.social/about/support/privacy-policy`, - privacy: `https://bsky.social/about/support/privacy-policy`,
+ tos: `https://bsky.social/abouthttps://syu.is/terms`, + tos: `https://syu.is/about/support/tos`,
+ privacy: `https://bsky.social/abouthttps://syu.is/privacy-policy`, + privacy: `https://syu.is/about/support/privacy-policy`,
community: `https://bsky.social/about/support/community-guidelines`, community: `https://bsky.social/about/support/community-guidelines`,
communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`, communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`,
} }

View File

@@ -104,7 +104,7 @@ index d7208df13..b711f71c7 100644
- /> - />
- </Svg> - </Svg>
+ <Image + <Image
+ source={require('../../../assets/icon.png')} + source={require('../../../assets/logo.png')}
+ style={[{width: size, height: size}, flatten(style)]} + style={[{width: size, height: size}, flatten(style)]}
+ contentFit="contain" + contentFit="contain"
+ accessibilityLabel="Logo" + accessibilityLabel="Logo"

View File

@@ -7,7 +7,7 @@ index 6b8257b91..35202224b 100644
<SettingsList.Container> <SettingsList.Container>
<SettingsList.LinkItem <SettingsList.LinkItem
- to="https://bsky.social/about/support/tos" - to="https://bsky.social/about/support/tos"
+ to="https://bsky.social/abouthttps://syu.is/terms" + to="https://syu.is/about/support/tos"
label={_(msg`Terms of Service`)}> label={_(msg`Terms of Service`)}>
<SettingsList.ItemIcon icon={NewspaperIcon} /> <SettingsList.ItemIcon icon={NewspaperIcon} />
<SettingsList.ItemText> <SettingsList.ItemText>
@@ -16,7 +16,7 @@ index 6b8257b91..35202224b 100644
</SettingsList.LinkItem> </SettingsList.LinkItem>
<SettingsList.LinkItem <SettingsList.LinkItem
- to="https://bsky.social/about/support/privacy-policy" - to="https://bsky.social/about/support/privacy-policy"
+ to="https://bsky.social/abouthttps://syu.is/privacy-policy" + to="https://syu.is/about/support/privacy-policy"
label={_(msg`Privacy Policy`)}> label={_(msg`Privacy Policy`)}>
<SettingsList.ItemIcon icon={NewspaperIcon} /> <SettingsList.ItemIcon icon={NewspaperIcon} />
<SettingsList.ItemText> <SettingsList.ItemText>
@@ -31,7 +31,7 @@ index dd319a4c6..0e80f956a 100644
- label={_(msg`Bluesky Social Terms of Service`)} - label={_(msg`Bluesky Social Terms of Service`)}
- to="https://bsky.social/about/support/tos" - to="https://bsky.social/about/support/tos"
+ label={_(msg`syu.is Terms of Service`)} + label={_(msg`syu.is Terms of Service`)}
+ to="https://bsky.social/abouthttps://syu.is/terms" + to="https://syu.is/about/support/tos"
style={[a.text_md, a.leading_normal]} style={[a.text_md, a.leading_normal]}
overridePresentation> overridePresentation>
- Bluesky Social Terms of Service - Bluesky Social Terms of Service

View File

@@ -7,7 +7,7 @@ index 9915d0a2d..c200a7c67 100644
You must be at least 13 years old to use Bluesky. Read our{' '} You must be at least 13 years old to use Bluesky. Read our{' '}
<SimpleInlineLinkText <SimpleInlineLinkText
- to="https://bsky.social/about/support/tos" - to="https://bsky.social/about/support/tos"
+ to="https://bsky.social/abouthttps://syu.is/terms" + to="https://syu.is/about/support/tos"
label={_(msg`Terms of Service`)}> label={_(msg`Terms of Service`)}>
Terms of Service Terms of Service
</SimpleInlineLinkText>{' '} </SimpleInlineLinkText>{' '}
@@ -700,14 +700,14 @@ index 1d097fc9a..e11a3a202 100644
)} )}
<InlineLinkText <InlineLinkText
- to="https://bsky.social/about/support/privacy-policy" - to="https://bsky.social/about/support/privacy-policy"
+ to="https://bsky.social/abouthttps://syu.is/privacy-policy" + to="https://syu.is/about/support/privacy-policy"
label={_(msg`Privacy`)}> label={_(msg`Privacy`)}>
{_(msg`Privacy`)} {_(msg`Privacy`)}
</InlineLinkText> </InlineLinkText>
{' • '} {' • '}
<InlineLinkText <InlineLinkText
- to="https://bsky.social/about/support/tos" - to="https://bsky.social/about/support/tos"
+ to="https://bsky.social/abouthttps://syu.is/terms" + to="https://syu.is/about/support/tos"
label={_(msg`Terms`)}> label={_(msg`Terms`)}>
{_(msg`Terms`)} {_(msg`Terms`)}
</InlineLinkText> </InlineLinkText>

View File

@@ -126,13 +126,13 @@ index 8365057e8..59c8506a2 100644
terms: { terms: {
overridePresentation: false, overridePresentation: false,
- to: `https://bsky.social/about/support/tos`, - to: `https://bsky.social/about/support/tos`,
+ to: `https://bsky.social/abouthttps://syu.is/terms`, + to: `https://syu.is/about/support/tos`,
label: _(msg`Terms of Service`), label: _(msg`Terms of Service`),
}, },
privacy: { privacy: {
overridePresentation: false, overridePresentation: false,
- to: `https://bsky.social/about/support/privacy-policy`, - to: `https://bsky.social/about/support/privacy-policy`,
+ to: `https://bsky.social/abouthttps://syu.is/privacy-policy`, + to: `https://syu.is/about/support/privacy-policy`,
label: _(msg`Privacy Policy`), label: _(msg`Privacy Policy`),
}, },
copyright: { copyright: {

View File

@@ -0,0 +1,30 @@
diff --git a/plugins/withCodeSignEntitlements.js b/plugins/withCodeSignEntitlements.js
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/plugins/withCodeSignEntitlements.js
@@ -0,0 +1,22 @@
+/* eslint-disable @typescript-eslint/no-var-requires */
+const { withXcodeProject } = require('@expo/config-plugins')
+
+const withCodeSignEntitlements = (config) => {
+ return withXcodeProject(config, (config) => {
+ const xcodeProject = config.modResults
+ const configurations = xcodeProject.pbxXCBuildConfigurationSection()
+
+ for (const key in configurations) {
+ const configuration = configurations[key]
+ if (
+ configuration.buildSettings &&
+ !configuration.comment.includes('TEST')
+ ) {
+ configuration.buildSettings.CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION =
+ 'YES'
+ }
+ }
+
+ return config
+ })
+}
+
+module.exports = withCodeSignEntitlements

View File

@@ -46,7 +46,7 @@ function apply-patch() {
pushd ${target_dir} > /dev/null pushd ${target_dir} > /dev/null
# Check if patch is already applied (reverse dry-run succeeds) # Check if patch is already applied (reverse dry-run succeeds)
if patch --dry-run -p1 -R < ${patch_file} > /dev/null 2>&1; then if patch -f --dry-run -p1 -R < ${patch_file} > /dev/null 2>&1; then
echo "✅ Already applied - skipping" echo "✅ Already applied - skipping"
popd > /dev/null popd > /dev/null
echo "" echo ""