Skip to content

Commit 082ad9e

Browse files
committed
Remove machines file except on Windows
1 parent 379cb9e commit 082ad9e

File tree

6 files changed

+0
-21
lines changed

6 files changed

+0
-21
lines changed

.github/workflows/android-app.yml

-3
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,6 @@ jobs:
324324
name: relay-list
325325
path: android/app/build/extraAssets
326326

327-
- name: Copy maybenot machines to asset directory
328-
run: cp dist-assets/maybenot_machines android/app/build/extraAssets/
329-
330327
- name: Build app
331328
uses: burrunan/gradle-cache-action@v1
332329
with:

android/app/build.gradle.kts

-10
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ plugins {
1919
val repoRootPath = rootProject.projectDir.absoluteFile.parentFile.absolutePath
2020
val extraAssetsDirectory = layout.buildDirectory.dir("extraAssets").get()
2121
val relayListPath = extraAssetsDirectory.file("relays.json").asFile
22-
val maybenotMachinesFile = extraAssetsDirectory.file("maybenot_machines").asFile
2322
val defaultChangelogAssetsDirectory = "$repoRootPath/android/src/main/play/release-notes/"
2423
val extraJniDirectory = layout.buildDirectory.dir("extraJni").get()
2524

@@ -245,7 +244,6 @@ android {
245244
// Ensure all relevant assemble tasks depend on our ensure tasks.
246245
tasks["assemble$capitalizedVariantName"].apply {
247246
dependsOn(tasks["ensureRelayListExist"])
248-
dependsOn(tasks["ensureMaybenotMachinesExist"])
249247
dependsOn(tasks["ensureJniDirectoryExist"])
250248
dependsOn(tasks["ensureValidVersionCode"])
251249
}
@@ -288,14 +286,6 @@ tasks.register("ensureRelayListExist") {
288286
}
289287
}
290288

291-
tasks.register("ensureMaybenotMachinesExist") {
292-
doLast {
293-
if (!maybenotMachinesFile.exists()) {
294-
throw GradleException("Missing maybenot machines: $maybenotMachinesFile")
295-
}
296-
}
297-
}
298-
299289
tasks.register("ensureJniDirectoryExist") {
300290
doLast {
301291
if (!extraJniDirectory.asFile.exists()) {

android/scripts/update-lockfile.sh

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ GRADLE_TASKS=(
2222
EXCLUDED_GRADLE_TASKS=(
2323
"-xensureRelayListExist"
2424
"-xensureJniDirectoryExist"
25-
"-xensureMaybenotMachinesExist"
2625
)
2726

2827
export GRADLE_OPTS

android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt

-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import org.koin.android.ext.android.getKoin
3232
import org.koin.core.context.loadKoinModules
3333

3434
private const val RELAY_LIST_ASSET_NAME = "relays.json"
35-
private const val MAYBENOT_MACHINES_ASSET_NAME = "maybenot_machines"
3635

3736
class MullvadVpnService : TalpidVpnService() {
3837

@@ -224,7 +223,6 @@ class MullvadVpnService : TalpidVpnService() {
224223

225224
private fun Context.prepareFiles() {
226225
extractAndOverwriteIfAssetMoreRecent(RELAY_LIST_ASSET_NAME)
227-
extractAndOverwriteIfAssetMoreRecent(MAYBENOT_MACHINES_ASSET_NAME)
228226
}
229227

230228
companion object {

build-apk.sh

-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ done
130130
echo "Updating relays.json..."
131131
cargo run --bin relay_list "${CARGO_ARGS[@]}" > android/app/build/extraAssets/relays.json
132132

133-
echo "Copying maybenot machines..."
134-
cp dist-assets/maybenot_machines android/app/build/extraAssets/
135-
136133
cd "$SCRIPT_DIR/android"
137134
$GRADLE_CMD --console plain "${GRADLE_TASKS[@]}"
138135

desktop/packages/mullvad-vpn/tasks/distribution.js

-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ function newConfig() {
111111
{ from: distAssets('uninstall_macos.sh'), to: './uninstall.sh' },
112112
{ from: buildAssets('shell-completions/_mullvad'), to: '.' },
113113
{ from: buildAssets('shell-completions/mullvad.fish'), to: '.' },
114-
{ from: distAssets('maybenot_machines'), to: '.' },
115114
],
116115
},
117116

@@ -208,7 +207,6 @@ function newConfig() {
208207
{ from: distAssets(path.join('linux', 'apparmor_mullvad')), to: '.' },
209208
{ from: distAssets(path.join('binaries', '${env.TARGET_TRIPLE}', 'openvpn')), to: '.' },
210209
{ from: distAssets(path.join('binaries', '${env.TARGET_TRIPLE}', 'apisocks5')), to: '.' },
211-
{ from: distAssets('maybenot_machines'), to: '.' },
212210
],
213211
},
214212

0 commit comments

Comments
 (0)