Skip to content

Commit 8e41549

Browse files
Move Apple release dir (#1808)
* Move Apple dir PoC * Remove Sources from build * Remove apple dir fork
1 parent c144529 commit 8e41549

File tree

18 files changed

+18
-60
lines changed

18 files changed

+18
-60
lines changed

.github/scripts/diff-directories.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,8 @@ function sortFiles(dirFiles, dirName) {
113113
}
114114

115115
const buildDir = '/build';
116-
const sourcesOutput = '/Sources/ContentScopeScripts/';
117116
sortFiles(readFilesRecursively(dir1 + buildDir), 'dir1');
118117
sortFiles(readFilesRecursively(dir2 + buildDir), 'dir2');
119-
sortFiles(readFilesRecursively(dir1 + sourcesOutput), 'dir1');
120-
sortFiles(readFilesRecursively(dir2 + sourcesOutput), 'dir2');
121118

122119
// console.log(Object.keys(files))
123120
const fileOut = displayDiffs(sections.dir1, sections.dir2);

.github/workflows/build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
git config --global user.name "github-actions[bot]"
4242
git config --global user.email "github-actions[bot]@users.noreply.github.com"
4343
git checkout -b pr-releases/pr-${PR_NUMBER}
44-
git add -f build Sources
44+
git add -f build
4545
git commit -m "Add build folder for PR ${PR_NUMBER}"
4646
git push -u origin pr-releases/pr-${PR_NUMBER} --force
4747
echo "BRANCH_NAME=pr-releases/pr-${PR_NUMBER}" >> $GITHUB_ENV

Package.swift

Lines changed: 0 additions & 29 deletions
This file was deleted.

Sources/ContentScopeScripts/ContentScopeScripts.swift

Lines changed: 0 additions & 5 deletions
This file was deleted.

Sources/ContentScopeScripts/dist/pages/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default tseslint.config(
1212
'**/docs/',
1313
'injected/lib',
1414
'injected/playwright-report/',
15-
'Sources/ContentScopeScripts/dist/',
1615
'injected/integration-test/extension/contentScope.js',
1716
'injected/integration-test/test-pages/duckplayer/scripts/dist',
1817
'special-pages/pages/**/public',

injected/docs/development-utilities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@ historyMethodProxy.overload();
161161

162162
### `DDGReflect`
163163

164-
Calls into `wrappedJSObject.Reflect` for Firefox but otherwise exactly the same as [window.Reflect](../../Sources/ContentScopeScripts/ContentScopeScripts.swift)
164+
Calls into `wrappedJSObject.Reflect` for Firefox but otherwise exactly the same as `window.Reflect`

injected/integration-test/type-helpers.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export class Build {
5959
const path = this.switch({
6060
windows: () => '../build/windows/contentScope.js',
6161
android: () => '../build/android/contentScope.js',
62-
apple: () => '../Sources/ContentScopeScripts/dist/contentScope.js',
63-
'apple-isolated': () => '../Sources/ContentScopeScripts/dist/contentScopeIsolated.js',
62+
apple: () => '../build/apple/contentScope.js',
63+
'apple-isolated': () => '../build/apple/contentScopeIsolated.js',
6464
'android-autofill-password-import': () => '../build/android/autofillPasswordImport.js',
6565
'android-broker-protection': () => '../build/android/brokerProtection.js',
6666
});

injected/scripts/entry-points.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ const builds = {
1717
},
1818
apple: {
1919
input: 'entry-points/apple.js',
20-
output: ['../Sources/ContentScopeScripts/dist/contentScope.js'],
20+
output: ['../build/apple/contentScope.js'],
2121
},
2222
'apple-isolated': {
2323
input: 'entry-points/apple.js',
24-
output: ['../Sources/ContentScopeScripts/dist/contentScopeIsolated.js'],
24+
output: ['../build/apple/contentScopeIsolated.js'],
2525
},
2626
android: {
2727
input: 'entry-points/android.js',

injected/unit-test/verify-artifacts.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { cwd } from '../../scripts/script-utils.js';
66
const ROOT = join(cwd(import.meta.url), '..', '..');
77
console.log(ROOT);
88
const BUILD = join(ROOT, 'build');
9-
const APPLE_BUILD = join(ROOT, 'Sources/ContentScopeScripts/dist');
10-
console.log(APPLE_BUILD);
9+
1110
let CSS_OUTPUT_SIZE = 770_000;
1211
if (process.platform === 'win32') {
1312
CSS_OUTPUT_SIZE = CSS_OUTPUT_SIZE * 1.1; // 10% larger for Windows due to line endings
@@ -43,14 +42,14 @@ const checks = {
4342
tests: [{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE }],
4443
},
4544
apple: {
46-
file: join(APPLE_BUILD, 'contentScope.js'),
45+
file: join(BUILD, 'apple/contentScope.js'),
4746
tests: [
4847
{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE },
4948
{ kind: 'containsString', text: '#bundledConfig', includes: false },
5049
],
5150
},
5251
'apple-isolated': {
53-
file: join(APPLE_BUILD, 'contentScopeIsolated.js'),
52+
file: join(BUILD, 'apple/contentScopeIsolated.js'),
5453
tests: [
5554
{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE },
5655
{ kind: 'containsString', text: 'Copyright (c) 2014-2015, hassansin', includes: true },

0 commit comments

Comments
 (0)