Skip to content

Commit 132ab1a

Browse files
committed
Remove machines file except on Windows
1 parent e13905d commit 132ab1a

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_v2 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
@@ -18,7 +18,6 @@ plugins {
1818
val repoRootPath = rootProject.projectDir.absoluteFile.parentFile.absolutePath
1919
val extraAssetsDirectory = layout.buildDirectory.dir("extraAssets").get()
2020
val relayListPath = extraAssetsDirectory.file("relays.json").asFile
21-
val maybenotMachinesFile = extraAssetsDirectory.file("maybenot_machines_v2").asFile
2221
val defaultChangelogAssetsDirectory = "$repoRootPath/android/src/main/play/release-notes/"
2322
val extraJniDirectory = layout.buildDirectory.dir("extraJni").get()
2423

@@ -238,7 +237,6 @@ android {
238237
// Ensure all relevant assemble tasks depend on our ensure tasks.
239238
tasks["assemble$capitalizedVariantName"].apply {
240239
dependsOn(tasks["ensureRelayListExist"])
241-
dependsOn(tasks["ensureMaybenotMachinesExist"])
242240
dependsOn(tasks["ensureJniDirectoryExist"])
243241
dependsOn(tasks["ensureValidVersionCode"])
244242
}
@@ -281,14 +279,6 @@ tasks.register("ensureRelayListExist") {
281279
}
282280
}
283281

284-
tasks.register("ensureMaybenotMachinesExist") {
285-
doLast {
286-
if (!maybenotMachinesFile.exists()) {
287-
throw GradleException("Missing maybenot machines: $maybenotMachinesFile")
288-
}
289-
}
290-
}
291-
292282
tasks.register("ensureJniDirectoryExist") {
293283
doLast {
294284
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_v2"
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
@@ -114,9 +114,6 @@ done
114114
echo "Updating relays.json..."
115115
cargo run --bin relay_list "${CARGO_ARGS[@]}" > android/app/build/extraAssets/relays.json
116116

117-
echo "Copying maybenot machines..."
118-
cp dist-assets/maybenot_machines_v2 android/app/build/extraAssets/
119-
120117
cd "$SCRIPT_DIR/android"
121118
$GRADLE_CMD --console plain "${GRADLE_TASKS[@]}"
122119

gui/tasks/distribution.js

-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ const config = {
107107
{ from: distAssets('uninstall_macos.sh'), to: './uninstall.sh' },
108108
{ from: buildAssets('shell-completions/_mullvad'), to: '.' },
109109
{ from: buildAssets('shell-completions/mullvad.fish'), to: '.' },
110-
{ from: distAssets('maybenot_machines_v2'), to: '.' },
111110
],
112111
},
113112

@@ -208,7 +207,6 @@ const config = {
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_v2'), to: '.' },
212210
],
213211
},
214212

0 commit comments

Comments
 (0)