Skip to content

Commit

Permalink
Remove machines file except on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 12, 2024
1 parent 6546f77 commit 39a61f7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/android-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,6 @@ jobs:
name: relay-list
path: android/app/build/extraAssets

- name: Copy maybenot machines to asset directory
run: cp dist-assets/maybenot_machines android/app/build/extraAssets/

- name: Build app
uses: burrunan/gradle-cache-action@v1
with:
Expand Down
10 changes: 0 additions & 10 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ plugins {
val repoRootPath = rootProject.projectDir.absoluteFile.parentFile.absolutePath
val extraAssetsDirectory = layout.buildDirectory.dir("extraAssets").get()
val relayListPath = extraAssetsDirectory.file("relays.json").asFile
val maybenotMachinesFile = extraAssetsDirectory.file("maybenot_machines").asFile
val defaultChangelogAssetsDirectory = "$repoRootPath/android/src/main/play/release-notes/"
val extraJniDirectory = layout.buildDirectory.dir("extraJni").get()

Expand Down Expand Up @@ -245,7 +244,6 @@ android {
// Ensure all relevant assemble tasks depend on our ensure tasks.
tasks["assemble$capitalizedVariantName"].apply {
dependsOn(tasks["ensureRelayListExist"])
dependsOn(tasks["ensureMaybenotMachinesExist"])
dependsOn(tasks["ensureJniDirectoryExist"])
dependsOn(tasks["ensureValidVersionCode"])
}
Expand Down Expand Up @@ -288,14 +286,6 @@ tasks.register("ensureRelayListExist") {
}
}

tasks.register("ensureMaybenotMachinesExist") {
doLast {
if (!maybenotMachinesFile.exists()) {
throw GradleException("Missing maybenot machines: $maybenotMachinesFile")
}
}
}

tasks.register("ensureJniDirectoryExist") {
doLast {
if (!extraJniDirectory.asFile.exists()) {
Expand Down
1 change: 0 additions & 1 deletion android/scripts/update-lockfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ GRADLE_TASKS=(
EXCLUDED_GRADLE_TASKS=(
"-xensureRelayListExist"
"-xensureJniDirectoryExist"
"-xensureMaybenotMachinesExist"
)

export GRADLE_OPTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import org.koin.android.ext.android.getKoin
import org.koin.core.context.loadKoinModules

private const val RELAY_LIST_ASSET_NAME = "relays.json"
private const val MAYBENOT_MACHINES_ASSET_NAME = "maybenot_machines"

class MullvadVpnService : TalpidVpnService() {

Expand Down Expand Up @@ -224,7 +223,6 @@ class MullvadVpnService : TalpidVpnService() {

private fun Context.prepareFiles() {
extractAndOverwriteIfAssetMoreRecent(RELAY_LIST_ASSET_NAME)
extractAndOverwriteIfAssetMoreRecent(MAYBENOT_MACHINES_ASSET_NAME)
}

companion object {
Expand Down
3 changes: 0 additions & 3 deletions build-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ done
echo "Updating relays.json..."
cargo run --bin relay_list "${CARGO_ARGS[@]}" > android/app/build/extraAssets/relays.json

echo "Copying maybenot machines..."
cp dist-assets/maybenot_machines android/app/build/extraAssets/

cd "$SCRIPT_DIR/android"
$GRADLE_CMD --console plain "${GRADLE_TASKS[@]}"

Expand Down
2 changes: 0 additions & 2 deletions desktop/packages/mullvad-vpn/tasks/distribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ function newConfig() {
{ from: distAssets('uninstall_macos.sh'), to: './uninstall.sh' },
{ from: buildAssets('shell-completions/_mullvad'), to: '.' },
{ from: buildAssets('shell-completions/mullvad.fish'), to: '.' },
{ from: distAssets('maybenot_machines'), to: '.' },
],
},

Expand Down Expand Up @@ -208,7 +207,6 @@ function newConfig() {
{ from: distAssets(path.join('linux', 'apparmor_mullvad')), to: '.' },
{ from: distAssets(path.join('binaries', '${env.TARGET_TRIPLE}', 'openvpn')), to: '.' },
{ from: distAssets(path.join('binaries', '${env.TARGET_TRIPLE}', 'apisocks5')), to: '.' },
{ from: distAssets('maybenot_machines'), to: '.' },
],
},

Expand Down

0 comments on commit 39a61f7

Please sign in to comment.